Skip to content

Commit

Permalink
Fix shared cache
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Sep 5, 2018
1 parent 718c819 commit 74971a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/files_sharing/lib/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -169,4 +169,9 @@ private function getOwnerDisplayName() {
public function clear() {
// Not a valid action for Shared Cache
}

public function getFolderContentsById($fileId) {
$results = $this->getCache()->getFolderContentsById($fileId);
return array_map(array($this, 'formatCacheEntry'), $results);
}
}

0 comments on commit 74971a2

Please sign in to comment.