do not promote or demote phone users

This commit is contained in:
Anton Georgiev 2017-09-06 18:01:42 -04:00
parent f6edf5d6fb
commit 609f6fd462

View File

@ -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) {