]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add FilesPlugin - fixes #22507
authorThomas Müller <thomas.mueller@tmit.eu>
Thu, 18 Feb 2016 19:11:59 +0000 (20:11 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Fri, 19 Feb 2016 11:37:24 +0000 (12:37 +0100)
apps/dav/lib/server.php

index ed1ee6840497d9c36d0d162dcb65c1dc54f60570..fd18d0d21ac97ef3e88663ec9c34454d52d6baa4 100644 (file)
@@ -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(