From 4bc8a2550d5558fba21f9b450f07d754dbb14d4b Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 13 Jun 2014 15:13:53 +0200 Subject: Fix public share webdav permissions --- apps/files_sharing/ajax/shareinfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_sharing/ajax') diff --git a/apps/files_sharing/ajax/shareinfo.php b/apps/files_sharing/ajax/shareinfo.php index e3735ddadd5..be26c357978 100644 --- a/apps/files_sharing/ajax/shareinfo.php +++ b/apps/files_sharing/ajax/shareinfo.php @@ -33,7 +33,7 @@ $linkItem = $data['linkItem']; // Load the files $path = $data['realPath']; -$isWritable = $linkItem['permissions'] & \OCP\PERMISSION_CREATE; +$isWritable = $linkItem['permissions'] & (\OCP\PERMISSION_UPDATE | \OCP\PERMISSION_CREATE); if (!$isWritable) { \OC\Files\Filesystem::addStorageWrapper('readonly', function ($mountPoint, $storage) { return new \OCA\Files_Sharing\ReadOnlyWrapper(array('storage' => $storage)); -- cgit v1.2.3