From: Robin Appelman Date: Thu, 23 Apr 2015 11:42:51 +0000 (+0200) Subject: fix subfolder reshares over webdav X-Git-Tag: v8.1.0beta1~105^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7a3a8e403266fa5db1250c89cbd9e43e7fe59269;p=nextcloud-server.git fix subfolder reshares over webdav --- diff --git a/apps/files_sharing/publicwebdav.php b/apps/files_sharing/publicwebdav.php index 6e1583eb4fe..3be464c64f0 100644 --- a/apps/files_sharing/publicwebdav.php +++ b/apps/files_sharing/publicwebdav.php @@ -58,8 +58,8 @@ $server->on('beforeMethod', function () use ($server, $objectTree, $authBackend) $share = $authBackend->getShare(); $rootShare = \OCP\Share::resolveReShare($share); $owner = $rootShare['uid_owner']; - $isWritable = $rootShare['permissions'] & (\OCP\Constants::PERMISSION_UPDATE | \OCP\Constants::PERMISSION_CREATE); - $fileId = $rootShare['file_source']; + $isWritable = $share['permissions'] & (\OCP\Constants::PERMISSION_UPDATE | \OCP\Constants::PERMISSION_CREATE); + $fileId = $share['file_source']; if (!$isWritable) { \OC\Files\Filesystem::addStorageWrapper('readonly', function ($mountPoint, $storage) {