Skip to content

Commit 4c21b9a

Browse files
Merge pull request #4433 from nextcloud/backport/4429/stable32
fix(ACL): apply ACL rules in the correct order
2 parents d57eef5 + 6fe458a commit 4c21b9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ACL/ACLManager.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ public function getPermissionsForPathFromRules(string $path, array $rules): int
165165
}
166166
}
167167

168+
uksort($filteredRules, static fn (string $a, string $b) => strlen($a) <=> strlen($b));
169+
168170
return $this->calculatePermissionsForPath($filteredRules);
169171
}
170172

0 commit comments

Comments
 (0)