block webdav in single user mode

remotes/origin/poc-doctrine-migrations
Robin Appelman 10 years ago
parent d96e9d174b
commit 8af106cc75
  1. 3
      lib/private/connector/sabre/maintenanceplugin.php

@ -60,6 +60,9 @@ class 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();
}

Loading…
Cancel
Save