From 8be05e9ad8ef5fa9d0f935ce309c5eec3204ad44 Mon Sep 17 00:00:00 2001 From: Gustavo Trott Date: Wed, 26 Apr 2023 09:33:19 -0300 Subject: [PATCH] Set permittion to viewers dont see other viewers typing when this lockSettions is on --- .../tables/public_v_user_typing_public.yaml | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_typing_public.yaml b/bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_typing_public.yaml index 692b40fa9a..8b854167a1 100644 --- a/bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_typing_public.yaml +++ b/bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_typing_public.yaml @@ -14,7 +14,7 @@ object_relationships: userId: userId insertion_order: null remote_table: - name: v_user + name: v_user_ref schema: public select_permissions: - role: bbb_client @@ -26,5 +26,21 @@ select_permissions: - typingAt - isCurrentlyTyping filter: - meetingId: - _eq: X-Hasura-MeetingId + _and: + - meetingId: + _eq: X-Hasura-MeetingId + - _or: + - meetingId: + _eq: X-Hasura-ModeratorInMeeting + - user: + isModerator: + _eq: true + - meetingId: + _neq: X-Hasura-LockedInMeeting + - _exists: + _table: + name: v_meeting_showUserlist + schema: public + _where: + meetingId: + _eq: X-Hasura-MeetingId