From b32b9db59c6c96ad58dda8f9824c905ffa4bf4d2 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 5 Sep 2018 22:48:08 +0200 Subject: [PATCH] Fix shared cache Signed-off-by: Roeland Jago Douma --- apps/files_sharing/lib/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/lib/Cache.php b/apps/files_sharing/lib/Cache.php index 352001ecbd4c1..f3712ead58b66 100644 --- a/apps/files_sharing/lib/Cache.php +++ b/apps/files_sharing/lib/Cache.php @@ -142,7 +142,7 @@ protected function formatCacheEntry($entry, $path = null) { } else { $entry['path'] = $path; } - $sharePermissions = $this->storage->getPermissions($path); + $sharePermissions = $this->storage->getPermissions($entry['path']); if (isset($entry['permissions'])) { $entry['permissions'] &= $sharePermissions; } else {