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
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-09-19 16:05:17 +0300
committerJoas Schilling <coding@schilljs.com>2019-09-19 16:05:17 +0300
commit2ea6dac6ab52838886ca509fc44599662cca4640 (patch)
tree1812ca8ba69320799c4243dc3b55464c536f6f24 /lib/Listener
parentd4424477feaa4a6e383f7805a3f75be4f181f726 (diff)
Allow to join a call when there are participants inside
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Listener')
-rw-r--r--lib/Listener/RestrictStartingCalls.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Listener/RestrictStartingCalls.php b/lib/Listener/RestrictStartingCalls.php
index e9ccd10ee..35246838f 100644
--- a/lib/Listener/RestrictStartingCalls.php
+++ b/lib/Listener/RestrictStartingCalls.php
@@ -70,7 +70,7 @@ class RestrictStartingCalls {
$canStartCall = true;
}
- if (!$canStartCall) {
+ if (!$canStartCall && !$room->hasSessionsInCall()) {
throw new ForbiddenException('Can not start a call');
}
}