From 802e59243b79a79b686c55c172d0b3f254b97270 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 25 Mar 2022 15:23:08 +0100 Subject: use all possible permissions dav properties Signed-off-by: Robin Appelman --- apps/files_sharing/lib/External/Storage.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/files_sharing/lib/External/Storage.php b/apps/files_sharing/lib/External/Storage.php index b301d2fcc9d..6a784f91fb1 100644 --- a/apps/files_sharing/lib/External/Storage.php +++ b/apps/files_sharing/lib/External/Storage.php @@ -370,6 +370,8 @@ class Storage extends DAV implements ISharedStorage, IDisableEncryptionStorage, } elseif (isset($response['{http://open-cloud-mesh.org/ns}share-permissions'])) { // permissions provided by the OCM API $permissions = $this->ocmPermissions2ncPermissions($response['{http://open-collaboration-services.org/ns}share-permissions'], $path); + } elseif (isset($response['{http://owncloud.org/ns}permissions'])) { + return $this->parsePermissions($response['{http://owncloud.org/ns}permissions']); } else { // use default permission if remote server doesn't provide the share permissions $permissions = $this->getDefaultPermissions($path); -- cgit v1.2.3