diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-04-09 15:57:27 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-04-09 15:57:27 +0200 |
commit | a7aba07dc13b0942a795a879aed0d5267a5052ba (patch) | |
tree | 980a7b1ffc7dfa94bf03f7bcba1016de5ebcfa56 /ocs/v1.php | |
parent | 8af106cc751573e4d27f6a2e576b899415e7260a (diff) | |
download | nextcloud-server-a7aba07dc13b0942a795a879aed0d5267a5052ba.tar.gz nextcloud-server-a7aba07dc13b0942a795a879aed0d5267a5052ba.zip |
block ocs in single user mode
Diffstat (limited to 'ocs/v1.php')
-rw-r--r-- | ocs/v1.php | 4 |
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); |