Merge pull request #17791 from gustavotrott/graphql-flags-mods-can-mute-unmute

feat (graphql-server): Add flags moderatorsCanMute/Unmute to usersPolicies
This commit is contained in:
Gustavo Trott 2023-05-02 13:32:32 -03:00 committed by GitHub
commit 0c82d0d1f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 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"(
"meetingId" varchar(100) references "meeting"("meetingId") ON DELETE CASCADE,

View File

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