diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-19 14:44:02 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-19 14:44:02 +0100 |
commit | 5b3a79a28bb5ac2bf6807b6c76d420e63febf64e (patch) | |
tree | a84f7d2782a53d9c8c495ccb18f639f7f473d27c /apps | |
parent | 2fd0e9b768a5ba9de6305468c2a97b91e5fa77ea (diff) | |
parent | e987d8cd47b5c8ea47b8b77b056343c32cf23666 (diff) | |
download | nextcloud-server-5b3a79a28bb5ac2bf6807b6c76d420e63febf64e.tar.gz nextcloud-server-5b3a79a28bb5ac2bf6807b6c76d420e63febf64e.zip |
Merge pull request #22509 from owncloud/add-filesplugin-to-new-webdav-endpoint
Add FilesPlugin
Diffstat (limited to 'apps')
-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( |