]> source.dussan.org Git - nextcloud-server.git/commitdiff
Pass $path to ocmPermissions2ncPermissions 21591/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Thu, 25 Jun 2020 21:42:24 +0000 (23:42 +0200)
committerDaniel Kesselberg <mail@danielkesselberg.de>
Thu, 25 Jun 2020 21:42:36 +0000 (23:42 +0200)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
apps/files_sharing/lib/External/Storage.php

index 0d5f620ddf246da7daa88158e4c9ccd4d8327af0..d875a51cb7a5c176e7d679cf70d82d29a89ea6f4 100644 (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);