Add flags moderatorsCanMuteAudio/moderatorsCanUnmuteAudio to graphql usersPolicies

This commit is contained in:
Gustavo Trott 2023-05-02 13:29:30 -03:00
parent 63ef4b23ac
commit 1ac2e4cd96
2 changed files with 20 additions and 4 deletions

View File

@ -129,7 +129,21 @@ create table "meeting_usersPolicies" (
); );
create index "idx_meeting_usersPolicies_meetingId" on "meeting_usersPolicies"("meetingId"); create index "idx_meeting_usersPolicies_meetingId" on "meeting_usersPolicies"("meetingId");
CREATE OR REPLACE VIEW "v_meeting_usersPolicies" AS SELECT * FROM "meeting_usersPolicies"; CREATE OR REPLACE VIEW "v_meeting_usersPolicies" AS
SELECT "meeting_usersPolicies"."meetingId",
"meeting_usersPolicies"."maxUsers",
"meeting_usersPolicies"."maxUserConcurrentAccesses",
"meeting_usersPolicies"."webcamsOnlyForModerator",
"meeting_usersPolicies"."userCameraCap",
"meeting_usersPolicies"."guestPolicy",
"meeting_usersPolicies"."meetingLayout",
"meeting_usersPolicies"."allowModsToUnmuteUsers",
"meeting_usersPolicies"."allowModsToEjectCameras",
"meeting_usersPolicies"."authenticatedGuest",
"meeting"."isBreakout" is false "moderatorsCanMuteAudio",
"meeting"."isBreakout" is false and "meeting_usersPolicies"."allowModsToUnmuteUsers" is true "moderatorsCanUnmuteAudio"
FROM "meeting_usersPolicies"
JOIN "meeting" using("meetingId");
create table "meeting_metadata"( create table "meeting_metadata"(
"meetingId" varchar(100) references "meeting"("meetingId") ON DELETE CASCADE, "meetingId" varchar(100) references "meeting"("meetingId") ON DELETE CASCADE,

View File

@ -8,13 +8,15 @@ select_permissions:
- allowModsToEjectCameras - allowModsToEjectCameras
- allowModsToUnmuteUsers - allowModsToUnmuteUsers
- authenticatedGuest - authenticatedGuest
- webcamsOnlyForModerator
- guestPolicy - guestPolicy
- meetingId
- meetingLayout
- maxUserConcurrentAccesses - maxUserConcurrentAccesses
- maxUsers - maxUsers
- meetingId
- meetingLayout
- moderatorsCanMuteAudio
- moderatorsCanUnmuteAudio
- userCameraCap - userCameraCap
- webcamsOnlyForModerator
filter: filter:
meetingId: meetingId:
_eq: X-Hasura-MeetingId _eq: X-Hasura-MeetingId