diff options
author | Joas Schilling <coding@schilljs.com> | 2021-04-07 11:43:44 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-05-11 13:43:50 +0200 |
commit | 0fc503a8ac7b658a50d5fb2349687ead33a65a0a (patch) | |
tree | 0a4e5c9f57655f6955253eb8a75d6c3df720e778 /lib/Participant.php | |
parent | 7f0f7c2d5a321d004dbef3b7aac90ad6e924f893 (diff) |
Allow to disable calling functionality
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Participant.php')
-rw-r--r-- | lib/Participant.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Participant.php b/lib/Participant.php index c28d76ca0..019841bbd 100644 --- a/lib/Participant.php +++ b/lib/Participant.php @@ -95,6 +95,10 @@ class Participant { public function canStartCall(IConfig $config): bool { $defaultStartCall = (int) $config->getAppValue('spreed', 'start_calls', Room::START_CALL_EVERYONE); + if ($defaultStartCall === Room::START_CALL_NOONE) { + return false; + } + if (!($this->getPermissions() & Attendee::PERMISSIONS_CALL_START)) { return false; } |