summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/connector/sabre/serverfactory.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-08 21:41:40 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-08 21:41:40 +0100
commitb77a4b0c6a3c34587316350dbf0ee222fd681b49 (patch)
treedb8937d969d168f58a3f26d2871cccddf1a62e7a /apps/dav/lib/connector/sabre/serverfactory.php
parent75bbd4f8b64209eaf120f1382d7cec6286e68c84 (diff)
parent2f1a60a64dc94f80a664639c1c0dddc399035fd8 (diff)
downloadnextcloud-server-b77a4b0c6a3c34587316350dbf0ee222fd681b49.tar.gz
nextcloud-server-b77a4b0c6a3c34587316350dbf0ee222fd681b49.zip
Merge pull request #22112 from owncloud/dav-filesreport
Provide REPORT method on files DAV to filter/search files
Diffstat (limited to 'apps/dav/lib/connector/sabre/serverfactory.php')
-rw-r--r--apps/dav/lib/connector/sabre/serverfactory.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/dav/lib/connector/sabre/serverfactory.php b/apps/dav/lib/connector/sabre/serverfactory.php
index fa4fda46870..9a828787a0d 100644
--- a/apps/dav/lib/connector/sabre/serverfactory.php
+++ b/apps/dav/lib/connector/sabre/serverfactory.php
@@ -115,7 +115,7 @@ class ServerFactory {
// wait with registering these until auth is handled and the filesystem is setup
$server->on('beforeMethod', function () use ($server, $objectTree, $viewCallBack) {
// ensure the skeleton is copied
- \OC::$server->getUserFolder();
+ $userFolder = \OC::$server->getUserFolder();
/** @var \OC\Files\View $view */
$view = $viewCallBack();
@@ -135,6 +135,15 @@ class ServerFactory {
if($this->userSession->isLoggedIn()) {
$server->addPlugin(new \OCA\DAV\Connector\Sabre\TagsPlugin($objectTree, $this->tagManager));
$server->addPlugin(new \OCA\DAV\Connector\Sabre\CommentPropertiesPlugin(\OC::$server->getCommentsManager(), $this->userSession));
+ $server->addPlugin(new \OCA\DAV\Connector\Sabre\FilesReportPlugin(
+ $objectTree,
+ $view,
+ \OC::$server->getSystemTagManager(),
+ \OC::$server->getSystemTagObjectMapper(),
+ $this->userSession,
+ \OC::$server->getGroupManager(),
+ $userFolder
+ ));
// custom properties plugin must be the last one
$server->addPlugin(
new \Sabre\DAV\PropertyStorage\Plugin(