Skip to content

[stable34] fix(acl): seed tree permissions from the path, not the base permission - #5255

Merged
provokateurin merged 1 commit into
stable34from
backport/5122/stable34
Nov 9, 2026
Merged

provokateurin merged 1 commit into
stable34from
backport/5122/stable34

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 9, 2026

Copy link
Copy Markdown

Backport of PR #5122

getPermissionsForTree() can only remove permissions while it walks the
rules below a path, so its starting value is a ceiling. It started from
the folder's base permission, which is 0 when "Do not grant any advanced
permissions by default" is set, so canDeleteTree() refused every delete
in such a folder, even where a rule grants delete.

Start from the permissions resolved for the path itself instead. The
callers have already checked those, and a descendant that withholds
delete still removes it from the result.

Fixes #5010

Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: Bart Kusters <bart@doconext.com>
@backportbot
backportbot Bot requested a review from provokateurin November 9, 2026 13:26
@backportbot backportbot Bot added bug 3. to review Items that need to be reviewed labels Nov 9, 2026
@provokateurin
provokateurin merged commit 3878341 into stable34 Nov 9, 2026
55 checks passed
@provokateurin
provokateurin deleted the backport/5122/stable34 branch November 9, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Items that need to be reviewed bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants