Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ocs
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-04-09 16:57:27 +0300
committerRobin Appelman <icewind@owncloud.com>2015-04-09 16:57:27 +0300
commita7aba07dc13b0942a795a879aed0d5267a5052ba (patch)
tree980a7b1ffc7dfa94bf03f7bcba1016de5ebcfa56 /ocs
parent8af106cc751573e4d27f6a2e576b899415e7260a (diff)
block ocs in single user mode
Diffstat (limited to 'ocs')
-rw-r--r--ocs/v1.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/ocs/v1.php b/ocs/v1.php
index 398a128c64b..8002ca602e6 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -27,7 +27,9 @@
require_once '../lib/base.php';
-if (\OCP\Util::needUpgrade() || \OC::$server->getSystemConfig()->getValue('maintenance', false)) {
+if (\OCP\Util::needUpgrade()
+ || \OC::$server->getSystemConfig()->getValue('maintenance', false)
+ || \OC::$server->getSystemConfig()->getValue('singleuser', false)) {
// since the behavior of apps or remotes are unpredictable during
// an upgrade, return a 503 directly
OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE);