block webdav in single user mode

This commit is contained in:
Robin Appelman 2015-04-09 15:56:41 +02:00
parent d96e9d174b
commit 8af106cc75
1 changed files with 3 additions and 0 deletions

View File

@ -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();
}