From 609f6fd462be82ea51fd52bfaa387a6cee558ac3 Mon Sep 17 00:00:00 2001 From: Anton Georgiev Date: Wed, 6 Sep 2017 18:01:42 -0400 Subject: [PATCH] do not promote or demote phone users --- .../users/views/MediaItemRenderer.mxml | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/users/views/MediaItemRenderer.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/users/views/MediaItemRenderer.mxml index ab356cabd9..02e1d610fb 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/users/views/MediaItemRenderer.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/users/views/MediaItemRenderer.mxml @@ -303,18 +303,20 @@ if (data != null) { var myMenuData:Array = []; - if (data.role == Role.MODERATOR) { - myMenuData.push({ - label: ResourceUtil.getInstance().getString('bbb.users.usersGrid.mediaItemRenderer.demoteUser',[data.name]), - icon: getStyle('iconDemote'), - callback: demoteUser - }); - } else { - myMenuData.push({ - label: ResourceUtil.getInstance().getString('bbb.users.usersGrid.mediaItemRenderer.promoteUser',[data.name]), - icon: getStyle('iconPromote'), - callback: promoteUser - }); + if (data.role != Role.VOICE_ONLY) { + if (data.role == Role.MODERATOR) { + myMenuData.push({ + label: ResourceUtil.getInstance().getString('bbb.users.usersGrid.mediaItemRenderer.demoteUser',[data.name]), + icon: getStyle('iconDemote'), + callback: demoteUser + }); + } else { + myMenuData.push({ + label: ResourceUtil.getInstance().getString('bbb.users.usersGrid.mediaItemRenderer.promoteUser',[data.name]), + icon: getStyle('iconPromote'), + callback: promoteUser + }); + } } if (options.allowKickUser) {