diff options
author | Joas Schilling <coding@schilljs.com> | 2019-09-15 13:14:44 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-09-19 15:55:59 +0300 |
commit | d4424477feaa4a6e383f7805a3f75be4f181f726 (patch) | |
tree | 6d4a1e84554505a2f9c7084aa11b796240688ffc /lib/Controller | |
parent | ffff5662644e383a31d63106d214317ffee2be11 (diff) |
Also prevent starting a call on API level
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/RoomController.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php index a00c82483..6139431f4 100644 --- a/lib/Controller/RoomController.php +++ b/lib/Controller/RoomController.php @@ -250,12 +250,12 @@ class RoomController extends AEnvironmentAwareController { return $roomData; } - $defaultStartCall = (int) $this->config->getAppValue('spreed', 'start_calls', '0'); - if ($defaultStartCall === 0) { + $defaultStartCall = (int) $this->config->getAppValue('spreed', 'start_calls', Room::START_CALL_EVERYONE); + if ($defaultStartCall === Room::START_CALL_EVERYONE) { $roomData['canStartCall'] = true; - } else if ($defaultStartCall === 1 && (!$currentParticipant->isGuest() || $currentParticipant->hasModeratorPermissions())) { + } else if ($defaultStartCall === Room::START_CALL_USERS && (!$currentParticipant->isGuest() || $currentParticipant->hasModeratorPermissions())) { $roomData['canStartCall'] = true; - } else if ($defaultStartCall === 2 && $currentParticipant->hasModeratorPermissions()) { + } else if ($defaultStartCall === Room::START_CALL_MODERATORS && $currentParticipant->hasModeratorPermissions()) { $roomData['canStartCall'] = true; } |