Include hasCaption flag

This commit is contained in:
Gustavo Trott 2023-12-14 10:54:52 -03:00
parent 06371d3267
commit b56f52fd78
2 changed files with 8 additions and 10 deletions

View File

@ -1627,16 +1627,15 @@ select "meeting"."meetingId",
from "v_externalVideo"
where "v_externalVideo"."meetingId" = "meeting"."meetingId"
) as "hasExternalVideo",
(
select array_agg(distinct "speechLocale")
from "user"
where "user"."meetingId" = "meeting"."meetingId"
exists (
select 1
from "v_user"
where "v_user"."meetingId" = "meeting"."meetingId"
and NULLIF("speechLocale",'') is not null
) as "audioTranscriptionCaption",
(
select array_agg(distinct "name")
) or exists (
select 1
from "sharedNotes"
where "sharedNotes"."meetingId" = "meeting"."meetingId"
and "model" = 'captions'
) as "typedCaption"
) as "hasCaption"
from "meeting";

View File

@ -10,13 +10,12 @@ select_permissions:
- role: bbb_client
permission:
columns:
- audioTranscriptionCaption
- hasBreakoutRoom
- hasExternalVideo
- hasPoll
- hasScreenshare
- hasTimer
- typedCaption
- hasCaption
filter:
meetingId:
_eq: X-Hasura-MeetingId