diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-04-23 13:42:51 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-04-23 13:42:51 +0200 |
commit | 7a3a8e403266fa5db1250c89cbd9e43e7fe59269 (patch) | |
tree | ea217ea75799e2f9165395f669371fb3da66a84e /apps | |
parent | 57f49391dc32584061c4bf318cd80a28f40ccfb2 (diff) | |
download | nextcloud-server-7a3a8e403266fa5db1250c89cbd9e43e7fe59269.tar.gz nextcloud-server-7a3a8e403266fa5db1250c89cbd9e43e7fe59269.zip |
fix subfolder reshares over webdav
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/publicwebdav.php | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |