When authenticatedGuests is disabled, guests should be fit for promotion
This commit is contained in:
parent
4274999ae6
commit
19cbef1fd9
@ -28,8 +28,9 @@ trait ChangeUserRoleCmdMsgHdlr extends RightsManagementTrait {
|
||||
} yield {
|
||||
RegisteredUsers.updateUserRole(liveMeeting.registeredUsers, u, userRole)
|
||||
}
|
||||
|
||||
if (msg.body.role == Roles.MODERATOR_ROLE && !uvo.guest) {
|
||||
// Mconf's guest should always be fit for promotion
|
||||
val promoteGuest = !liveMeeting.props.usersProp.authenticatedGuest
|
||||
if (msg.body.role == Roles.MODERATOR_ROLE && (!uvo.guest || promoteGuest)) {
|
||||
// Promote non-guest users.
|
||||
Users2x.changeRole(liveMeeting.users2x, uvo, msg.body.role)
|
||||
val event = buildUserRoleChangedEvtMsg(liveMeeting.props.meetingProp.intId, msg.body.userId,
|
||||
|
Loading…
Reference in New Issue
Block a user