Open source video conferencing app powered by LiveKit. Built with Django and React.
π(frontend) enforce recording-mode permissions on the checkboxes
lebaudantoine99ba8e330ee7
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5f511c17..dda7c75d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -13,6 +13,10 @@ and this project adheres to- π(backend) throttle meeting link generation- ποΈ(backend) add a daily cap on room creation+### Fixed++- π(frontend) enforce recording-mode permissions on the checkboxes+## [1.33.0] - 2026-09-30### Addeddiff --git a/src/frontend/src/features/recording/components/ScreenRecordingSidePanel.tsx b/src/frontend/src/features/recording/components/ScreenRecordingSidePanel.tsxindex 73c45ed7..2e429a9a 100644--- a/src/frontend/src/features/recording/components/ScreenRecordingSidePanel.tsx+++ b/src/frontend/src/features/recording/components/ScreenRecordingSidePanel.tsx@@ -45,6 +45,10 @@ export const ScreenRecordingSidePanel = () => {FeatureFlags.ScreenRecording)+ const hasTranscriptAccess = useHasRecordingAccess(+ RecordingMode.Transcript,+ FeatureFlags.Transcript+ )const { notifyParticipants } = useNotifyParticipants()const { selectedLanguageKey, isLanguageSetToAuto } =useTranscriptionLanguage()@@ -88,7 +92,7 @@ export const ScreenRecordingSidePanel = () => {...(!isLanguageSetToAuto && {language: selectedLanguageKey,}),- ...(includeTranscript && { transcribe: true }),+ ...(includeTranscript && hasTranscriptAccess && { transcribe: true }),}await startRecording({@@ -182,24 +186,26 @@ export const ScreenRecordingSidePanel = () => {<RowWrapper iconName="mail" position="last"><Text variant="sm">{t('details.receiver')}</Text></RowWrapper>-- <div className={css({ height: '15px' })} />-- <div- className={css({- width: '100%',- marginLeft: '20px',- })}- >- <Checkbox- size="sm"- isSelected={includeTranscript}- onChange={setIncludeTranscript}- isDisabled={statuses.isActive || isPendingToStart}- >- <Text variant="sm">{t('details.transcription')}</Text>- </Checkbox>- </div>+ {hasTranscriptAccess && (+ <>+ <div className={css({ height: '15px' })} />+ <div+ className={css({+ width: '100%',+ marginLeft: '20px',+ })}+ >+ <Checkbox+ size="sm"+ isSelected={includeTranscript}+ onChange={setIncludeTranscript}+ isDisabled={statuses.isActive || isPendingToStart}+ >+ <Text variant="sm">{t('details.transcription')}</Text>+ </Checkbox>+ </div>+ </>+ )}</VStack><ControlsButtoni18nKeyPrefix={keyPrefix}diff --git a/src/frontend/src/features/recording/components/TranscriptSidePanel.tsx b/src/frontend/src/features/recording/components/TranscriptSidePanel.tsxindex 1abada47..ee7ad99e 100644--- a/src/frontend/src/features/recording/components/TranscriptSidePanel.tsx+++ b/src/frontend/src/features/recording/components/TranscriptSidePanel.tsx@@ -53,6 +53,10 @@ export const TranscriptSidePanel = () => {FeatureFlags.Transcript)+ const hasScreenRecordingAccess = useHasRecordingAccess(+ RecordingMode.ScreenRecording,+ FeatureFlags.ScreenRecording+ )const hasFeatureWithoutAdminRights = useHasFeatureWithoutAdminRights(RecordingMode.Transcript,FeatureFlags.Transcript@@ -97,7 +101,9 @@ export const TranscriptSidePanel = () => {room.localParticipant)} else {- const recordingMode = includeScreenRecording+ const withScreenRecording =+ includeScreenRecording && hasScreenRecordingAccess+ const recordingMode = withScreenRecording? RecordingMode.ScreenRecording: RecordingMode.Transcript@@ -105,7 +111,7 @@ export const TranscriptSidePanel = () => {...(!isLanguageSetToAuto && {language: selectedLanguageKey,}),- ...(includeScreenRecording && {+ ...(withScreenRecording && {transcribe: true,original_mode: RecordingMode.Transcript,}),@@ -122,7 +128,7 @@ export const TranscriptSidePanel = () => {type: NotificationType.TranscriptionStarted,})captureEvent('transcript-started', {- includeScreenRecording: includeScreenRecording,+ includeScreenRecording: withScreenRecording,language: selectedLanguageKey,})}@@ -234,22 +240,26 @@ export const TranscriptSidePanel = () => {</Button></Text></RowWrapper>- <div className={css({ height: '15px' })} />- <div- className={css({- width: '100%',- marginLeft: '20px',- })}- >- <Checkbox- size="sm"- isSelected={includeScreenRecording}- onChange={setIncludeScreenRecording}- isDisabled={statuses.isActive || isPendingToStart}- >- <Text variant="sm">{t('details.recording')}</Text>- </Checkbox>- </div>+ {hasScreenRecordingAccess && (+ <>+ <div className={css({ height: '15px' })} />+ <div+ className={css({+ width: '100%',+ marginLeft: '20px',+ })}+ >+ <Checkbox+ size="sm"+ isSelected={includeScreenRecording}+ onChange={setIncludeScreenRecording}+ isDisabled={statuses.isActive || isPendingToStart}+ >+ <Text variant="sm">{t('details.recording')}</Text>+ </Checkbox>+ </div>+ </>+ )}</VStack><ControlsButtoni18nKeyPrefix={keyPrefix}