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-15 13:14:44 +0300
committerJoas Schilling <coding@schilljs.com>2019-09-19 15:55:59 +0300
commitd4424477feaa4a6e383f7805a3f75be4f181f726 (patch)
tree6d4a1e84554505a2f9c7084aa11b796240688ffc /lib/Controller
parentffff5662644e383a31d63106d214317ffee2be11 (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.php8
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;
}