Merge pull request #21591 from nextcloud/debt/noid/set-path-for-ocm-permissions

Pass $path to ocmPermissions2ncPermissions
This commit is contained in:
Roeland Jago Douma 2020-07-02 21:10:19 +02:00 committed by GitHub
commit 1913b1b91f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ class Storage extends DAV implements ISharedStorage, IDisableEncryptionStorage {
$permissions = $response['{http://open-collaboration-services.org/ns}share-permissions'];
} 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']);
$permissions = $this->ocmPermissions2ncPermissions($response['{http://open-collaboration-services.org/ns}share-permissions'], $path);
} else {
// use default permission if remote server doesn't provide the share permissions
$permissions = $this->getDefaultPermissions($path);