[Pkg-owncloud-commits] [owncloud] 63/103: block webdav 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 7c0c34f682966919d7a9293f3d98c2dd81e74e85
Author: Robin Appelman <icewind at owncloud.com>
Date:   Thu Apr 9 15:56:41 2015 +0200

    block webdav in single user mode
---
 lib/private/connector/sabre/maintenanceplugin.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/private/connector/sabre/maintenanceplugin.php b/lib/private/connector/sabre/maintenanceplugin.php
index 0208f3f..86fbd32 100644
--- a/lib/private/connector/sabre/maintenanceplugin.php
+++ b/lib/private/connector/sabre/maintenanceplugin.php
@@ -45,6 +45,9 @@ class OC_Connector_Sabre_MaintenancePlugin extends \Sabre\DAV\ServerPlugin
 	 * @return bool
 	 */
 	public function checkMaintenanceMode() {
+		if (\OC::$server->getSystemConfig()->getValue('singleuser', false)) {
+			throw new \Sabre\DAV\Exception\ServiceUnavailable();
+		}
 		if (OC_Config::getValue('maintenance', false)) {
 			throw new \Sabre\DAV\Exception\ServiceUnavailable();
 		}

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