mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 23:18:21 +00:00
Fix call permissions check confusion around element call (#30521)
It would previously say no permission if you had no perms for an EC call but had perms for a legacy call. Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
committed by
GitHub
parent
001ed616f6
commit
01c4ba8893
@@ -213,11 +213,12 @@ export const useRoomCall = (
|
|||||||
return State.NoOneHere;
|
return State.NoOneHere;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mayCreateElementCalls && !mayEditWidgets) {
|
if (!callOptions.includes(PlatformCallType.LegacyCall) && !mayCreateElementCalls && !mayEditWidgets) {
|
||||||
return State.NoPermission;
|
return State.NoPermission;
|
||||||
}
|
}
|
||||||
return State.NoCall;
|
return State.NoCall;
|
||||||
}, [
|
}, [
|
||||||
|
callOptions,
|
||||||
connectedCalls,
|
connectedCalls,
|
||||||
canInviteGuests,
|
canInviteGuests,
|
||||||
hasGroupCall,
|
hasGroupCall,
|
||||||
|
|||||||
Reference in New Issue
Block a user