diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-04-09 15:56:41 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-04-09 15:56:41 +0200 |
commit | 8af106cc751573e4d27f6a2e576b899415e7260a (patch) | |
tree | 0ea046344c511671dd2fb2fdc881b7f6753771e6 /lib/private | |
parent | d96e9d174bf6c5128fca0c8b6ab8320dc3c93dad (diff) | |
download | nextcloud-server-8af106cc751573e4d27f6a2e576b899415e7260a.tar.gz nextcloud-server-8af106cc751573e4d27f6a2e576b899415e7260a.zip |
block webdav in single user mode
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/connector/sabre/maintenanceplugin.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/connector/sabre/maintenanceplugin.php b/lib/private/connector/sabre/maintenanceplugin.php index 91c48a45d3f..c4c9a5340bc 100644 --- a/lib/private/connector/sabre/maintenanceplugin.php +++ b/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(); } |