backend: update participant permissions to disable recorder and prevent room creation for publishers
This commit is contained in:
parent
f7ce0152c1
commit
c80b88fc67
@ -91,7 +91,7 @@ export class ParticipantService {
|
|||||||
canPublishData: true,
|
canPublishData: true,
|
||||||
canUpdateOwnMetadata: true,
|
canUpdateOwnMetadata: true,
|
||||||
hidden: false,
|
hidden: false,
|
||||||
recorder: true,
|
recorder: false,
|
||||||
agent: false
|
agent: false
|
||||||
},
|
},
|
||||||
openvidu: {
|
openvidu: {
|
||||||
@ -106,6 +106,7 @@ export class ParticipantService {
|
|||||||
protected generatePublisherPermissions(roomId: string): ParticipantPermissions {
|
protected generatePublisherPermissions(roomId: string): ParticipantPermissions {
|
||||||
return {
|
return {
|
||||||
livekit: {
|
livekit: {
|
||||||
|
roomCreate: false,
|
||||||
roomJoin: true,
|
roomJoin: true,
|
||||||
roomList: true,
|
roomList: true,
|
||||||
roomRecord: false,
|
roomRecord: false,
|
||||||
|
|||||||
@ -474,7 +474,7 @@ const getPermissions = (roomId: string, role: ParticipantRole) => {
|
|||||||
canPublishData: true,
|
canPublishData: true,
|
||||||
canUpdateOwnMetadata: true,
|
canUpdateOwnMetadata: true,
|
||||||
hidden: false,
|
hidden: false,
|
||||||
recorder: true,
|
recorder: false,
|
||||||
agent: false
|
agent: false
|
||||||
},
|
},
|
||||||
openvidu: {
|
openvidu: {
|
||||||
@ -487,6 +487,7 @@ const getPermissions = (roomId: string, role: ParticipantRole) => {
|
|||||||
case ParticipantRole.PUBLISHER:
|
case ParticipantRole.PUBLISHER:
|
||||||
return {
|
return {
|
||||||
livekit: {
|
livekit: {
|
||||||
|
roomCreate: false,
|
||||||
roomJoin: true,
|
roomJoin: true,
|
||||||
roomList: true,
|
roomList: true,
|
||||||
roomRecord: false,
|
roomRecord: false,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user