From: Robin Appelman Date: Thu, 23 Apr 2015 11:42:51 +0000 (+0200) Subject: fix subfolder reshares over webdav X-Git-Tag: v7.0.6RC1~7^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=38644cffd40221857c9addfe5f517ec4f5868cdf;p=nextcloud-server.git fix subfolder reshares over webdav --- diff --git a/apps/files_sharing/publicwebdav.php b/apps/files_sharing/publicwebdav.php index 3e000534bbb..1dcb2b3ca72 100644 --- a/apps/files_sharing/publicwebdav.php +++ b/apps/files_sharing/publicwebdav.php @@ -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) {