Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-10-25 18:06:15 +0300
committerJoas Schilling <coding@schilljs.com>2021-10-27 17:38:04 +0300
commit014cc4be1c8052a251a9be4371acd7b3582ebbf0 (patch)
tree6dea38b4a07d740750977fdca9440cd607634e6b /lib
parent76a52e04b6cee32049385e29cc3b80dad6f0e8d8 (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.php6
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');
}