block webdav in single user mode
This commit is contained in:
parent
d96e9d174b
commit
8af106cc75
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue