[Pkg-owncloud-commits] [owncloud] 64/103: block ocs in single user mode

David Prévot taffit at moszumanska.debian.org
Sun May 31 12:32:38 UTC 2015


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

taffit pushed a commit to annotated tag v8.0.4RC1
in repository owncloud.

commit 714ca7a3a284b73b62b334a29ba4f7911a02c1a4
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 0bdc8f7..5b73809 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -23,7 +23,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);

-- 
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