Skip to content

nmc/5903-favorites-rename-option-missing#492

Merged
memurats merged 1 commit into
stable32from
nmc/5903-favorites-rename-option-missing
Jul 23, 2026
Merged

nmc/5903-favorites-rename-option-missing#492
memurats merged 1 commit into
stable32from
nmc/5903-favorites-rename-option-missing

Conversation

@suet-kei-chan

Copy link
Copy Markdown

The core files app hides "Rename" for every item in the Favorites view because its enabled() check requires the real parent folder to have CREATE permission. Favorites is a flattened list aggregating items from many different folders, so no single real parent is resolvable, and the check always fails there.

Patch the rename action's enabled() at runtime, scoped to the favorites view only, to fall back to the node's own DELETE + UPDATE permission bits instead of the parent folder's permissions. All other views keep the original, unmodified behavior.

The core files app hides "Rename" for every item in the Favorites view
because its enabled() check requires the real parent folder to have
CREATE permission. Favorites is a flattened list aggregating items from
many different folders, so no single real parent is resolvable, and the
check always fails there.

Patch the rename action's enabled() at runtime, scoped to the favorites
view only, to fall back to the node's own DELETE + UPDATE permission
bits instead of the parent folder's permissions. All other views keep
the original, unmodified behavior.
@suet-kei-chan suet-kei-chan self-assigned this Jul 21, 2026
@memurats
memurats merged commit 2d56dff into stable32 Jul 23, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants