summaryrefslogtreecommitdiffstats
path: root/lib/private/connector/sabre/maintenanceplugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/connector/sabre/maintenanceplugin.php')
-rw-r--r--lib/private/connector/sabre/maintenanceplugin.php3
1 files changed, 3 insertions, 0 deletions
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();
}