Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-03-25 17:23:08 +0300
committerRobin Appelman <robin@icewind.nl>2022-04-04 17:48:24 +0300
commit802e59243b79a79b686c55c172d0b3f254b97270 (patch)
tree40e1edd9648a9879e09964ead33fc87c862ed9a3 /apps/files_sharing
parent89d3cd144746eb9004f45a718986c86451204e12 (diff)
use all possible permissions dav properties
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/External/Storage.php2
1 files changed, 2 insertions, 0 deletions
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);