diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-18 20:11:59 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-19 12:37:24 +0100 |
commit | e987d8cd47b5c8ea47b8b77b056343c32cf23666 (patch) | |
tree | 1ec2aca2e09faa230882f18d5726862112acda90 /apps/dav | |
parent | 1106c354acd8ebc23b1a19662232d8f6235bc96d (diff) | |
download | nextcloud-server-e987d8cd47b5c8ea47b8b77b056343c32cf23666.tar.gz nextcloud-server-e987d8cd47b5c8ea47b8b77b056343c32cf23666.zip |
Add FilesPlugin - fixes #22507
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/server.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/lib/server.php b/apps/dav/lib/server.php index ed1ee684049..fd18d0d21ac 100644 --- a/apps/dav/lib/server.php +++ b/apps/dav/lib/server.php @@ -26,6 +26,7 @@ use OCA\DAV\CalDAV\Schedule\IMipPlugin; use OCA\DAV\Connector\FedAuth; use OCA\DAV\Connector\Sabre\Auth; use OCA\DAV\Connector\Sabre\BlockLegacyClientPlugin; +use OCA\DAV\Connector\Sabre\FilesPlugin; use OCA\DAV\Files\CustomPropertiesBackend; use OCP\IRequest; use OCP\SabrePluginEvent; @@ -127,6 +128,9 @@ class Server { // custom properties plugin must be the last one $user = \OC::$server->getUserSession()->getUser(); if (!is_null($user)) { + $view = \OC\Files\Filesystem::getView(); + $this->server->addPlugin(new FilesPlugin($this->server->tree, $view)); + $this->server->addPlugin( new \Sabre\DAV\PropertyStorage\Plugin( new CustomPropertiesBackend( |