summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-09-05 22:48:08 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-09-06 17:10:21 +0200
commit870ebec4ac1f5528a83969253a5994ab5ee1a414 (patch)
treebb2d80fd992789caf038b46830ef5861897b2230 /apps/files_sharing/lib
parentd7931b82ae2d17ab8ea5ae5d43f23ea622c13bc6 (diff)
downloadnextcloud-server-870ebec4ac1f5528a83969253a5994ab5ee1a414.tar.gz
nextcloud-server-870ebec4ac1f5528a83969253a5994ab5ee1a414.zip
Fix shared cache
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/Cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Cache.php b/apps/files_sharing/lib/Cache.php
index 352001ecbd4..f3712ead58b 100644
--- a/apps/files_sharing/lib/Cache.php
+++ b/apps/files_sharing/lib/Cache.php
@@ -142,7 +142,7 @@ class Cache extends CacheJail {
} else {
$entry['path'] = $path;
}
- $sharePermissions = $this->storage->getPermissions($path);
+ $sharePermissions = $this->storage->getPermissions($entry['path']);
if (isset($entry['permissions'])) {
$entry['permissions'] &= $sharePermissions;
} else {