Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 7daba5d

Browse files
authored
Fix updating permission works on roles (#600)
1 parent 485ea5b commit 7daba5d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

source/agent/conference/conference.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,8 +867,14 @@ var Conference = function (rpcClient, selfRpcId) {
867867
}
868868

869869
permission = {
870-
publish: my_role_def[0].publish,
871-
subscribe: my_role_def[0].subscribe
870+
publish: {
871+
video: my_role_def[0].publish.video,
872+
audio: my_role_def[0].publish.audio
873+
},
874+
subscribe: {
875+
video: my_role_def[0].subscribe.video,
876+
audio: my_role_def[0].subscribe.audio
877+
}
872878
};
873879

874880
return addParticipant(participantInfo, permission);

0 commit comments

Comments
 (0)