[Pkg-owncloud-commits] [owncloud] 56/78: block webdav 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 780530ec83ebb141599410ac6b92ba0ca293d333
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..9d50a70 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 (\OCP\Config::getSystemValue('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