diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-08-11 13:28:33 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-08-11 14:43:46 +0200 |
commit | fd353650414f634adca5f1d55fc7d3470ef88122 (patch) | |
tree | 09d76bad416585004ada9a5fc5fe5474c2b55e92 /lib | |
parent | d15870b998e4c022106e5d467d30bd5cf990357d (diff) | |
download | nextcloud-server-fd353650414f634adca5f1d55fc7d3470ef88122.tar.gz nextcloud-server-fd353650414f634adca5f1d55fc7d3470ef88122.zip |
only add tags plugin when loggedin
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/connector/sabre/serverfactory.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/connector/sabre/serverfactory.php b/lib/private/connector/sabre/serverfactory.php index 7d3ed338adf..e9ec6b46f73 100644 --- a/lib/private/connector/sabre/serverfactory.php +++ b/lib/private/connector/sabre/serverfactory.php @@ -81,11 +81,11 @@ class ServerFactory { $rootDir = new \OC\Connector\Sabre\Directory($view, $rootInfo); $objectTree->init($rootDir, $view, $this->mountManager); - $server->addPlugin(new \OC\Connector\Sabre\TagsPlugin($objectTree, $this->tagManager)); $server->addPlugin(new \OC\Connector\Sabre\QuotaPlugin($view)); - // custom properties plugin must be the last one if($this->userSession->isLoggedIn()) { + $server->addPlugin(new \OC\Connector\Sabre\TagsPlugin($objectTree, $this->tagManager)); + // custom properties plugin must be the last one $server->addPlugin( new \Sabre\DAV\PropertyStorage\Plugin( new \OC\Connector\Sabre\CustomPropertiesBackend( |