block webdav in single user mode
This commit is contained in:
parent
d96e9d174b
commit
8af106cc75
|
@ -60,6 +60,9 @@ class MaintenancePlugin extends \Sabre\DAV\ServerPlugin
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function checkMaintenanceMode() {
|
public function checkMaintenanceMode() {
|
||||||
|
if (\OC::$server->getSystemConfig()->getValue('singleuser', false)) {
|
||||||
|
throw new \Sabre\DAV\Exception\ServiceUnavailable();
|
||||||
|
}
|
||||||
if (\OC_Config::getValue('maintenance', false)) {
|
if (\OC_Config::getValue('maintenance', false)) {
|
||||||
throw new \Sabre\DAV\Exception\ServiceUnavailable();
|
throw new \Sabre\DAV\Exception\ServiceUnavailable();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue