[Pkg-owncloud-commits] [owncloud] 57/78: block ocs in single user mode

David Prévot taffit at moszumanska.debian.org
Sun May 31 01:59:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 0418b330d5ad8064d5a3b35cb18319e252fbcbd5
Author: Robin Appelman <icewind at owncloud.com>
Date:   Thu Apr 9 15:57:27 2015 +0200

    block ocs in single user mode
---
 ocs/v1.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ocs/v1.php b/ocs/v1.php
index 495ce22..6ec6b87 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list