Skip to content

Commit

Permalink
Add log in akka-apps to show whether user was banned or simply ejected
Browse files Browse the repository at this point in the history
  • Loading branch information
antobinary committed May 22, 2020
1 parent ca9ae8d commit b6194f9
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ trait EjectUserFromMeetingCmdMsgHdlr extends RightsManagementTrait {
ejectedByUser <- RegisteredUsers.findWithUserId(ejectedBy, liveMeeting.registeredUsers)
} yield {
if (registeredUser.externId != ejectedByUser.externId) {
// Hardcode right now to true. Once we've added the ban field to the
// eject message, we can use that here.
// For the moment, just assume that is a user is ejected by another user,
// then that user should be banned (ralam may 19, 2020)
// see https://github.com/bigbluebutton/bigbluebutton/issues/9608
val ban = banUser

// Eject users
Expand All @@ -57,6 +52,9 @@ trait EjectUserFromMeetingCmdMsgHdlr extends RightsManagementTrait {
EjectReasonCode.EJECT_USER,
ban
)

log.info("Eject userId=" + userId + " by " + ejectedBy + " and ban=" + banUser)

// send a system message to force disconnection
Sender.sendDisconnectClientSysMsg(meetingId, ru.id, ejectedBy, EjectReasonCode.EJECT_USER, outGW)
}
Expand Down

0 comments on commit b6194f9

Please sign in to comment.