diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-04-11 00:57:31 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-04-11 01:31:57 +0200 |
commit | aacbb560ae5bbae3541e901915937cc3384353ef (patch) | |
tree | 7d804bafcffbb910c42d4cc60c7baf244bf7f146 /apps/dav/lib/Server.php | |
parent | a045f3c4d7ef606ea302712952ec474d5ea5637a (diff) | |
download | nextcloud-server-aacbb560ae5bbae3541e901915937cc3384353ef.tar.gz nextcloud-server-aacbb560ae5bbae3541e901915937cc3384353ef.zip |
Add missing maintenance plugin to new DAV endpoint
The `/remote.php/dav/` endpoint was not implementing the MaintenancePlugin. Thus when the instance was put into maintenance mode the endpoints were still accessible and delivered empty content. Sync clients really do love this.
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/dav/lib/Server.php')
-rw-r--r-- | apps/dav/lib/Server.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php index a5c1379eb7e..e0517477488 100644 --- a/apps/dav/lib/Server.php +++ b/apps/dav/lib/Server.php @@ -74,6 +74,9 @@ class Server { $root = new RootCollection(); $this->server = new \OCA\DAV\Connector\Sabre\Server($root); + // Add maintenance plugin + $this->server->addPlugin(new \OCA\DAV\Connector\Sabre\MaintenancePlugin(\OC::$server->getConfig())); + // Backends $authBackend = new Auth( \OC::$server->getSession(), |