From c80b88fc673d1956606d408ade3b0733e94fad7f Mon Sep 17 00:00:00 2001 From: juancarmore Date: Tue, 20 May 2025 16:55:19 +0200 Subject: [PATCH] backend: update participant permissions to disable recorder and prevent room creation for publishers --- backend/src/services/participant.service.ts | 3 ++- backend/tests/helpers/assertion-helpers.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/src/services/participant.service.ts b/backend/src/services/participant.service.ts index b30fdcf..baf82f5 100644 --- a/backend/src/services/participant.service.ts +++ b/backend/src/services/participant.service.ts @@ -91,7 +91,7 @@ export class ParticipantService { canPublishData: true, canUpdateOwnMetadata: true, hidden: false, - recorder: true, + recorder: false, agent: false }, openvidu: { @@ -106,6 +106,7 @@ export class ParticipantService { protected generatePublisherPermissions(roomId: string): ParticipantPermissions { return { livekit: { + roomCreate: false, roomJoin: true, roomList: true, roomRecord: false, diff --git a/backend/tests/helpers/assertion-helpers.ts b/backend/tests/helpers/assertion-helpers.ts index 0966e79..558b571 100644 --- a/backend/tests/helpers/assertion-helpers.ts +++ b/backend/tests/helpers/assertion-helpers.ts @@ -474,7 +474,7 @@ const getPermissions = (roomId: string, role: ParticipantRole) => { canPublishData: true, canUpdateOwnMetadata: true, hidden: false, - recorder: true, + recorder: false, agent: false }, openvidu: { @@ -487,6 +487,7 @@ const getPermissions = (roomId: string, role: ParticipantRole) => { case ParticipantRole.PUBLISHER: return { livekit: { + roomCreate: false, roomJoin: true, roomList: true, roomRecord: false,