Skip to content

Commit

Permalink
N21-1247 check for waitingroom
Browse files Browse the repository at this point in the history
  • Loading branch information
mrikallab committed Sep 5, 2023
1 parent c869f7c commit 224b2bd
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ export class VideoConferenceJoinUc {
joinBuilder.withRole(BBBRole.MODERATOR);
}

if (
videoConference.options.moderatorMustApproveJoinRequests &&
!isGuest &&
!videoConference.options.everybodyJoinsAsModerator
) {
joinBuilder.asGuest(true);
}

if (!videoConference.options.moderatorMustApproveJoinRequests && isGuest) {
throw new ForbiddenException(
ErrorStatus.GUESTS_CANNOT_JOIN_CONFERENCE,
Expand Down

0 comments on commit 224b2bd

Please sign in to comment.