prevent moderator eject errors
This commit is contained in:
parent
8e5c23c473
commit
64a45f7613
@ -44,7 +44,7 @@ export const generateActionsPermissions = (
|
||||
&& subjectUserVoice?.joined
|
||||
&& !subjectUserVoice.listenOnly
|
||||
&& subjectUserVoice.muted
|
||||
&& (amISubjectUser || usersPolicies.allowModsToUnmuteUsers);
|
||||
&& (amISubjectUser || usersPolicies?.allowModsToUnmuteUsers);
|
||||
|
||||
const allowedToResetStatus = hasAuthority
|
||||
&& subjectUser.emoji !== EMOJI_STATUSES.none
|
||||
@ -60,14 +60,14 @@ export const generateActionsPermissions = (
|
||||
&& !isSubjectUserModerator
|
||||
&& !isDialInUser
|
||||
&& !isBreakout
|
||||
&& !(isSubjectUserGuest && usersPolicies.authenticatedGuest);
|
||||
&& !(isSubjectUserGuest && usersPolicies?.authenticatedGuest);
|
||||
|
||||
const allowedToDemote = amIModerator
|
||||
&& !amISubjectUser
|
||||
&& isSubjectUserModerator
|
||||
&& !isDialInUser
|
||||
&& !isBreakout
|
||||
&& !(isSubjectUserGuest && usersPolicies.authenticatedGuest);
|
||||
&& !(isSubjectUserGuest && usersPolicies?.authenticatedGuest);
|
||||
|
||||
const allowedToChangeStatus = amISubjectUser && USER_STATUS_ENABLED;
|
||||
|
||||
@ -80,7 +80,7 @@ export const generateActionsPermissions = (
|
||||
|
||||
const allowedToEjectCameras = amIModerator
|
||||
&& !amISubjectUser
|
||||
&& usersPolicies.allowModsToEjectCameras;
|
||||
&& usersPolicies?.allowModsToEjectCameras;
|
||||
|
||||
const allowedToSetPresenter = amIModerator
|
||||
&& !subjectUser.presenter
|
||||
|
Loading…
Reference in New Issue
Block a user