]> 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>
Thu, 23 Apr 2015 11:42:51 +0000 (13:42 +0200)
apps/files_sharing/publicwebdav.php

index 6e1583eb4fe5a28cee3db81e012063ce1bfa6ccf..3be464c64f00f76c3a03d291747f9908fa437917 100644 (file)
@@ -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) {