🚩(frontend) display transcript item only for admin/owner
Only room admin/owner should be abble to start a transcript.
This commit is contained in:
committed by
aleb_the_flash
parent
fe70165076
commit
be884a8ca1
@@ -3,6 +3,7 @@ export type ApiRoom = {
|
|||||||
name: string
|
name: string
|
||||||
slug: string
|
slug: string
|
||||||
is_public: boolean
|
is_public: boolean
|
||||||
|
is_administrable: boolean
|
||||||
livekit?: {
|
livekit?: {
|
||||||
url: string
|
url: string
|
||||||
room: string
|
room: string
|
||||||
|
|||||||
@@ -44,7 +44,8 @@ export const TranscriptMenuItem = () => {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
!apiConfig.recording?.is_enabled ||
|
!apiConfig.recording?.is_enabled ||
|
||||||
!apiConfig.recording?.available_modes?.includes(RecordingMode.Transcript)
|
!apiConfig.recording?.available_modes?.includes(RecordingMode.Transcript) ||
|
||||||
|
!data.is_administrable
|
||||||
) {
|
) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user