mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
use all possible permissions dav properties
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
d33ba15c38
commit
de99d90654
1 changed files with 2 additions and 0 deletions
2
apps/files_sharing/lib/External/Storage.php
vendored
2
apps/files_sharing/lib/External/Storage.php
vendored
|
|
@ -373,6 +373,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue