Fix microphone lock affecting moderators

close #7966
This commit is contained in:
Joao Siebel 2019-08-23 14:25:33 -03:00
parent 4ea7600c45
commit cc62ce721c

View File

@ -11,7 +11,7 @@ const lockContextContainer = component => withTracker(() => {
const lockSetting = new LockStruct();
const Meeting = Meetings.findOne({ meetingId: Auth.meetingID });
const User = Users.findOne({ userId: Auth.userID });
const userIsLocked = User.locked && User.role === ROLE_MODERATOR;
const userIsLocked = User.locked && User.role !== ROLE_MODERATOR;
const lockSettings = Meeting.lockSettingsProps;
lockSetting.isLocked = userIsLocked;