]> source.dussan.org Git - nextcloud-server.git/commitdiff
block ocs in single user mode
authorRobin Appelman <icewind@owncloud.com>
Thu, 9 Apr 2015 13:57:27 +0000 (15:57 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 6 May 2015 10:10:02 +0000 (12:10 +0200)
ocs/v1.php

index 495ce22585e30774dd9bcd81186c070c2b41277b..6ec6b87b8ae4f7fbd8ddea8c24ae103516072801 100644 (file)
@@ -23,7 +23,9 @@
 
 require_once '../lib/base.php';
 
-if (\OCP\Util::needUpgrade() || \OCP\Config::getSystemValue('maintenance', false)) {
+if (\OCP\Util::needUpgrade()
+       || \OCP\Config::getSystemValue('maintenance', false)
+       || \OCP\Config::getSystemValue('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);