]> source.dussan.org Git - nextcloud-server.git/commitdiff
block webdav in single user mode
authorRobin Appelman <icewind@owncloud.com>
Thu, 9 Apr 2015 13:56:41 +0000 (15:56 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 6 May 2015 10:08:58 +0000 (12:08 +0200)
lib/private/connector/sabre/maintenanceplugin.php

index 0208f3fb5a6f708fd94391bc86729d2ec75e90e4..9d50a70ad6f77c997b5d9c0173d3cf56830b14d4 100644 (file)
@@ -45,6 +45,9 @@ class OC_Connector_Sabre_MaintenancePlugin extends \Sabre\DAV\ServerPlugin
         * @return bool
         */
        public function checkMaintenanceMode() {
+               if (\OCP\Config::getSystemValue('singleuser', false)) {
+                       throw new \Sabre\DAV\Exception\ServiceUnavailable();
+               }
                if (OC_Config::getValue('maintenance', false)) {
                        throw new \Sabre\DAV\Exception\ServiceUnavailable();
                }