diff --git a/bigbluebutton-client/resources/config.xml.template b/bigbluebutton-client/resources/config.xml.template index 24a7da8126..13d8767c76 100755 --- a/bigbluebutton-client/resources/config.xml.template +++ b/bigbluebutton-client/resources/config.xml.template @@ -1,7 +1,6 @@ 0.9.0 - VERSION @@ -14,7 +13,7 @@ @@ -119,7 +118,7 @@ . . [Bindable] private var layoutOptions:LayoutOptions; [Bindable] private var brandingOptions:BrandingOptions; + [Bindable] private var usersOptions:UsersOptions; [Bindable] private var showToolbarOpt:Boolean = true; [Bindable] private var _showToolbar:Boolean = true; @@ -215,7 +217,8 @@ with BigBlueButton; if not, see . public function initOptions(e:Event):void { brandingOptions = Options.getOptions(BrandingOptions) as BrandingOptions; layoutOptions = Options.getOptions(LayoutOptions) as LayoutOptions; - + usersOptions = Options.getOptions(UsersOptions) as UsersOptions; + updateCopyrightText(); loadBackground(); @@ -495,7 +498,7 @@ with BigBlueButton; if not, see . private function refreshGuestView(evt:NewGuestWaitingEvent):void { // do not show the guest window if the user isn't moderator or if he's waiting for acceptance - if (!UsersUtil.amIModerator() || UsersUtil.amIWaitingForAcceptance()) { + if (!UsersUtil.amIModerator() || UsersUtil.amIWaitingForAcceptance() && usersOptions.enableGuestUI) { closeGuestWindow(); return; } diff --git a/bigbluebutton-client/src/org/bigbluebutton/main/views/MainToolbar.mxml b/bigbluebutton-client/src/org/bigbluebutton/main/views/MainToolbar.mxml index 2cadd89925..7bccd322c6 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/main/views/MainToolbar.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/main/views/MainToolbar.mxml @@ -52,44 +52,45 @@ with BigBlueButton; if not, see . . [Bindable] private var showRecordButton:Boolean = false; [Bindable] public var toolbarOptions:LayoutOptions; [Bindable] private var brandingOptions:BrandingOptions; + [Bindable] private var usersOptions:UsersOptions; [Bindable] private var numButtons:int; @@ -127,6 +129,8 @@ with BigBlueButton; if not, see . private function init():void{ toolbarOptions = Options.getOptions(LayoutOptions) as LayoutOptions; brandingOptions = Options.getOptions(BrandingOptions) as BrandingOptions; + usersOptions = Options.getOptions(UsersOptions) as UsersOptions; + numButtons = 0; // Accessibility isn't active till a few second after the client starts to load so we need a delay @@ -194,7 +198,7 @@ with BigBlueButton; if not, see . } private function refreshModeratorButtonsVisibility(e:*):void { - showGuestSettingsButton = UsersUtil.amIModerator(); + showGuestSettingsButton = UsersUtil.amIModerator() && usersOptions.enableGuestUI; showRecordButton = UsersUtil.amIModerator(); } @@ -544,7 +548,8 @@ with BigBlueButton; if not, see . styleName="bandwidthButtonStyle" toolTip="dummy text" click="onNetStatsButtonClick()" - visible="{toolbarOptions.showNetworkMonitor}" /> + visible="{toolbarOptions.showNetworkMonitor}" + includeInLayout="{toolbarOptions.showNetworkMonitor}"/> diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/users/model/UsersOptions.as b/bigbluebutton-client/src/org/bigbluebutton/modules/users/model/UsersOptions.as index db9bc8ec71..cdfa54a445 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/users/model/UsersOptions.as +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/users/model/UsersOptions.as @@ -33,6 +33,9 @@ package org.bigbluebutton.modules.users.model { [Bindable] public var enableSettingsButton:Boolean = true; + + [Bindable] + public var enableGuestUI:Boolean = false; public function UsersOptions() { name = "UsersModule";