only add tags plugin when loggedin
This commit is contained in:
parent
d15870b998
commit
fd35365041
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue