From 9c9d74fd6dc2d459dfaac0c09b131dd5f66d0e0b Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sun, 4 Apr 2021 14:43:28 +0000 Subject: [PATCH] minor: Use page_params.is_realm_admin. We don't need to get this off the sub. --- static/js/stream_popover.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/stream_popover.js b/static/js/stream_popover.js index 49bc940c0a..6af5a95dee 100644 --- a/static/js/stream_popover.js +++ b/static/js/stream_popover.js @@ -245,7 +245,7 @@ function build_topic_popover(opts) { topic_name, can_mute_topic, can_unmute_topic, - is_realm_admin: sub.is_realm_admin, + is_realm_admin: page_params.is_realm_admin, color: sub.color, has_starred_messages, });