From 34bc824472a97984f6dd8cc1cbaeef6a46fb7984 Mon Sep 17 00:00:00 2001 From: Richard Alam Date: Wed, 7 Feb 2018 12:36:12 -0800 Subject: [PATCH] - hide broadcast layout button for viewers --- .../bigbluebutton/modules/layout/views/LayoutButton.mxml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/layout/views/LayoutButton.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/layout/views/LayoutButton.mxml index dc4dc2689e..f69ac3db45 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/layout/views/LayoutButton.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/layout/views/LayoutButton.mxml @@ -21,6 +21,7 @@ with BigBlueButton; if not, see . @@ -42,6 +43,7 @@ with BigBlueButton; if not, see . import org.bigbluebutton.common.events.LocaleChangeEvent; import org.bigbluebutton.core.PopUpUtil; + import org.bigbluebutton.core.UsersUtil; import org.bigbluebutton.modules.layout.events.LayoutEvent; import org.bigbluebutton.util.i18n.ResourceUtil; @@ -56,6 +58,10 @@ with BigBlueButton; if not, see . private var dispatcher:Dispatcher = new Dispatcher(); + protected function onCreationComplete():void { + refreshRole(UsersUtil.amIModerator()); + } + public function enableEditOptions(editable:Boolean):void { enableEdit = editable; refreshIcon();