From 19cbef1fd90f6670e0989e1bd0198f2859508ed4 Mon Sep 17 00:00:00 2001 From: Pedro Beschorner Marin Date: Fri, 17 May 2019 17:31:36 +0000 Subject: [PATCH] When authenticatedGuests is disabled, guests should be fit for promotion --- .../core/apps/users/ChangeUserRoleCmdMsgHdlr.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/users/ChangeUserRoleCmdMsgHdlr.scala b/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/users/ChangeUserRoleCmdMsgHdlr.scala index 95e8ac3b4f..980d3bf5c9 100755 --- a/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/users/ChangeUserRoleCmdMsgHdlr.scala +++ b/akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/users/ChangeUserRoleCmdMsgHdlr.scala @@ -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,