Merge pull request #4290 from nextcloud/stable11-maintenance-mode-also-on-dav

Add missing maintenance plugin to new DAV endpoint
This commit is contained in:
Morris Jobke 2017-04-11 00:44:45 -05:00 committed by GitHub
commit baa0b3235c
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,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(),