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>2020-11-30 18:43:34 +0300
committerJoas Schilling <coding@schilljs.com>2020-11-30 18:43:34 +0300
commit2371782fd6140de4ea6fa557be7b1215e79923ad (patch)
tree5df84e95e3ee6aa0a8c2dba0832d48e5abdee6f3 /lib/Controller
parentae9226c636f876f95408d5f13481a73ab4155061 (diff)
Fix return code when user can not enable SIP
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/RoomController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php
index c8b4bdb2e..a6c1de718 100644
--- a/lib/Controller/RoomController.php
+++ b/lib/Controller/RoomController.php
@@ -1706,7 +1706,7 @@ class RoomController extends AEnvironmentAwareController {
}
if (!$this->talkConfig->canUserEnableSIP($user)) {
- return new DataResponse([], Http::STATUS_UNAUTHORIZED);
+ return new DataResponse([], Http::STATUS_FORBIDDEN);
}
if (!$this->talkConfig->isSIPConfigured()) {