From 780530ec83ebb141599410ac6b92ba0ca293d333 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 9 Apr 2015 15:56:41 +0200 Subject: [PATCH] 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 0208f3fb5a6..9d50a70ad6f 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(); } -- 2.39.5