do not promote or demote phone users
This commit is contained in:
parent
f6edf5d6fb
commit
609f6fd462
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user