summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-04-23 13:42:51 +0200
committerRobin Appelman <icewind@owncloud.com>2015-04-24 14:19:52 +0200
commit38644cffd40221857c9addfe5f517ec4f5868cdf (patch)
tree254c43cf13f6539f4c3465cff59eda55b6701fc9 /apps/files_sharing
parent2c10e31c8f660e93859a5117b02075ab29996941 (diff)
downloadnextcloud-server-38644cffd40221857c9addfe5f517ec4f5868cdf.tar.gz
nextcloud-server-38644cffd40221857c9addfe5f517ec4f5868cdf.zip
fix subfolder reshares over webdav
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/publicwebdav.php4
1 files changed, 2 insertions, 2 deletions
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) {