backend: update participant permissions to disable recorder and prevent room creation for publishers

This commit is contained in:
juancarmore 2025-05-20 16:55:19 +02:00
parent f7ce0152c1
commit c80b88fc67
2 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -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,