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>
pull/4289/head
Lukas Reschke 9 years ago
parent a045f3c4d7
commit aacbb560ae
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
  1. 3
      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(),

Loading…
Cancel
Save