summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-09-16 10:22:10 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-16 10:22:10 +0200
commited872589a39ff195e063d6bec1c6bf6f8ff82d92 (patch)
tree5fe807a1657eeda1b54a52c8e0bc215c1871307e /lib/private
parentafc7eeacaffac3034f34c880597f6655ce1bfc25 (diff)
parente0992c129732b352338b1f7aec16d1108fc26011 (diff)
downloadnextcloud-server-ed872589a39ff195e063d6bec1c6bf6f8ff82d92.tar.gz
nextcloud-server-ed872589a39ff195e063d6bec1c6bf6f8ff82d92.zip
Merge pull request #19077 from owncloud/check-maintenance-before-everything-else-master
Check for maintenance mode first so we send the 503 instead of login…
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/connector/sabre/serverfactory.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/serverfactory.php b/lib/private/connector/sabre/serverfactory.php
index 86f60633541..042cc051d35 100644
--- a/lib/private/connector/sabre/serverfactory.php
+++ b/lib/private/connector/sabre/serverfactory.php
@@ -63,12 +63,12 @@ class ServerFactory {
// Load plugins
$defaults = new \OC_Defaults();
+ $server->addPlugin(new \OC\Connector\Sabre\MaintenancePlugin($this->config));
$server->addPlugin(new \OC\Connector\Sabre\BlockLegacyClientPlugin($this->config));
$server->addPlugin(new \Sabre\DAV\Auth\Plugin($authBackend, $defaults->getName()));
// FIXME: The following line is a workaround for legacy components relying on being able to send a GET to /
$server->addPlugin(new \OC\Connector\Sabre\DummyGetResponsePlugin());
$server->addPlugin(new \OC\Connector\Sabre\FilesPlugin($objectTree));
- $server->addPlugin(new \OC\Connector\Sabre\MaintenancePlugin($this->config));
$server->addPlugin(new \OC\Connector\Sabre\ExceptionLoggerPlugin('webdav', $this->logger));
$server->addPlugin(new \OC\Connector\Sabre\LockPlugin($objectTree));