]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix subfolder reshares over webdav
authorRobin Appelman <icewind@owncloud.com>
Thu, 23 Apr 2015 11:42:51 +0000 (13:42 +0200)
committerRobin Appelman <icewind@owncloud.com>
Fri, 24 Apr 2015 12:19:52 +0000 (14:19 +0200)
apps/files_sharing/publicwebdav.php

index 3e000534bbbf6dbea1dc6466fae0f7a16fa3c410..1dcb2b3ca72ccac630a3854bc3cc57801a9cd203 100644 (file)
@@ -42,8 +42,8 @@ $server->subscribeEvent('beforeMethod', function () use ($server, $objectTree, $
        $share = $authBackend->getShare();
        $rootShare = \OCP\Share::resolveReShare($share);
        $owner = $rootShare['uid_owner'];
-       $isWritable = $rootShare['permissions'] & (\OCP\PERMISSION_UPDATE | \OCP\PERMISSION_CREATE);
-       $fileId = $rootShare['file_source'];
+       $isWritable = $share['permissions'] & (\OCP\PERMISSION_UPDATE | \OCP\PERMISSION_CREATE);
+       $fileId = $share['file_source'];
 
        if (!$isWritable) {
                \OC\Files\Filesystem::addStorageWrapper('readonly', function ($mountPoint, $storage) {