only add tags plugin when loggedin

This commit is contained in:
Robin Appelman 2015-08-11 13:28:33 +02:00
parent d15870b998
commit fd35365041
1 changed files with 2 additions and 2 deletions

View File

@ -81,11 +81,11 @@ class ServerFactory {
$rootDir = new \OC\Connector\Sabre\Directory($view, $rootInfo); $rootDir = new \OC\Connector\Sabre\Directory($view, $rootInfo);
$objectTree->init($rootDir, $view, $this->mountManager); $objectTree->init($rootDir, $view, $this->mountManager);
$server->addPlugin(new \OC\Connector\Sabre\TagsPlugin($objectTree, $this->tagManager));
$server->addPlugin(new \OC\Connector\Sabre\QuotaPlugin($view)); $server->addPlugin(new \OC\Connector\Sabre\QuotaPlugin($view));
// custom properties plugin must be the last one
if($this->userSession->isLoggedIn()) { if($this->userSession->isLoggedIn()) {
$server->addPlugin(new \OC\Connector\Sabre\TagsPlugin($objectTree, $this->tagManager));
// custom properties plugin must be the last one
$server->addPlugin( $server->addPlugin(
new \Sabre\DAV\PropertyStorage\Plugin( new \Sabre\DAV\PropertyStorage\Plugin(
new \OC\Connector\Sabre\CustomPropertiesBackend( new \OC\Connector\Sabre\CustomPropertiesBackend(