Skip to content

Commit

Permalink
fix handling of cached rules
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Jun 19, 2019
1 parent 81198c8 commit cd9f539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ACL/ACLManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ private function pathsAreCached(array $paths): bool {
*/
private function getRules(array $paths): array {
if ($this->pathsAreCached($paths)) {
$rules = array_map(function (string $path) {
$rules = array_combine($paths, array_map(function (string $path) {
return $this->ruleCache->get($path);
}, $paths);
}, $paths));
} else {
$rules = $this->ruleManager->getRulesForFilesByPath($this->user, $this->getRootStorageId(), $paths);
foreach ($rules as $path => $rulesForPath) {
Expand Down

0 comments on commit cd9f539

Please sign in to comment.