Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairblue
Commits
ab2b1a6a
Commit
ab2b1a6a
authored
7 years ago
by
Richard Alam
Browse files
Options
Downloads
Patches
Plain Diff
- do allow mute/unmute self when lock settings is applied
parent
4ced34d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/users/MuteUserCmdMsgHdlr.scala
+15
-6
15 additions, 6 deletions
...rg/bigbluebutton/core/apps/users/MuteUserCmdMsgHdlr.scala
with
15 additions
and
6 deletions
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/users/MuteUserCmdMsgHdlr.scala
+
15
−
6
View file @
ab2b1a6a
...
...
@@ -3,8 +3,9 @@ package org.bigbluebutton.core.apps.users
import
org.bigbluebutton.SystemConfiguration
import
org.bigbluebutton.common2.msgs.MuteUserCmdMsg
import
org.bigbluebutton.core.apps.
{
PermissionCheck
,
RightsManagementTrait
}
import
org.bigbluebutton.core.models.VoiceUsers
import
org.bigbluebutton.core.models.
{
Roles
,
Users2x
,
VoiceUsers
}
import
org.bigbluebutton.core.running.
{
LiveMeeting
,
OutMsgRouter
}
import
org.bigbluebutton.core2.MeetingStatus2x
import
org.bigbluebutton.core2.message.senders.MsgBuilder
trait
MuteUserCmdMsgHdlr
extends
RightsManagementTrait
{
...
...
@@ -27,14 +28,22 @@ trait MuteUserCmdMsgHdlr extends RightsManagementTrait {
log
.
info
(
"Received mute user request. meetingId="
+
meetingId
+
" userId="
+
msg
.
body
.
userId
)
val
permissions
=
MeetingStatus2x
.
getPermissions
(
liveMeeting
.
status
)
for
{
requester
<-
Users2x
.
findWithIntId
(
liveMeeting
.
users2x
,
msg
.
header
.
userId
)
u
<-
VoiceUsers
.
findWithIntId
(
liveMeeting
.
voiceUsers
,
msg
.
body
.
userId
)
}
yield
{
if
(
u
.
muted
!=
msg
.
body
.
mute
)
{
log
.
info
(
"Send mute user request. meetingId="
+
meetingId
+
" userId="
+
u
.
intId
+
" user="
+
u
)
val
event
=
MsgBuilder
.
buildMuteUserInVoiceConfSysMsg
(
meetingId
,
voiceConf
,
u
.
voiceUserId
,
msg
.
body
.
mute
)
outGW
.
send
(
event
)
if
(
requester
.
role
!=
Roles
.
MODERATOR_ROLE
&&
permissions
.
disableMic
&&
msg
.
body
.
userId
==
msg
.
header
.
userId
)
{
// muting/unmuting self while not moderator and mic disabled. Do not allow.
}
else
{
if
(
u
.
muted
!=
msg
.
body
.
mute
)
{
log
.
info
(
"Send mute user request. meetingId="
+
meetingId
+
" userId="
+
u
.
intId
+
" user="
+
u
)
val
event
=
MsgBuilder
.
buildMuteUserInVoiceConfSysMsg
(
meetingId
,
voiceConf
,
u
.
voiceUserId
,
msg
.
body
.
mute
)
outGW
.
send
(
event
)
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment