From dbd0efebc31faeb759f1312cbcc486e4fe400b5a Mon Sep 17 00:00:00 2001 From: Tainan Felipe <tainanfelipe214@gmail.com> Date: Wed, 3 Jul 2019 11:18:46 -0300 Subject: [PATCH] Add lock verification for users actions --- .../imports/ui/components/user-list/service.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bigbluebutton-html5/imports/ui/components/user-list/service.js b/bigbluebutton-html5/imports/ui/components/user-list/service.js index 94b3ae970f..e8dbd936f5 100755 --- a/bigbluebutton-html5/imports/ui/components/user-list/service.js +++ b/bigbluebutton-html5/imports/ui/components/user-list/service.js @@ -288,7 +288,7 @@ const areUsersUnmutable = () => { return meeting.usersProp.allowModsToUnmuteUsers; } return false; -} +}; const getAvailableActions = (currentUser, user, isBreakoutRoom) => { const isDialInUser = isVoiceOnlyUser(user.id) || user.isPhoneUser; @@ -298,11 +298,13 @@ const getAvailableActions = (currentUser, user, isBreakoutRoom) => { const allowedToChatPrivately = !user.isCurrent && !isDialInUser; const allowedToMuteAudio = hasAuthority + && !user.isLocked && user.isVoiceUser && !user.isMuted && !user.isListenOnly; const allowedToUnmuteAudio = hasAuthority + && !user.isLocked && user.isVoiceUser && !user.isListenOnly && user.isMuted -- GitLab