diff options
author | Joas Schilling <coding@schilljs.com> | 2021-10-25 18:06:15 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-10-27 17:38:04 +0300 |
commit | 014cc4be1c8052a251a9be4371acd7b3582ebbf0 (patch) | |
tree | 6dea38b4a07d740750977fdca9440cd607634e6b /lib | |
parent | 76a52e04b6cee32049385e29cc3b80dad6f0e8d8 (diff) |
Always allow guests to start a call in video verification
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Listener/RestrictStartingCalls.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Listener/RestrictStartingCalls.php b/lib/Listener/RestrictStartingCalls.php index 316f5564b..58efb626f 100644 --- a/lib/Listener/RestrictStartingCalls.php +++ b/lib/Listener/RestrictStartingCalls.php @@ -60,6 +60,12 @@ class RestrictStartingCalls { $room = $event->getRoom(); $participant = $event->getParticipant(); + if ($room->getType() === Room::TYPE_PUBLIC + && $room->getObjectType() === 'share:password') { + // Always allow guests to start calls in password-request calls + return; + } + if (!$participant->canStartCall($this->config) && !$this->participantService->hasActiveSessionsInCall($room)) { throw new ForbiddenException('Can not start a call'); } |