Skip to content

fix(ui): show dot menu when editMenuItems exist regardless of create/delete permission#16989

Open
jhjh1214 wants to merge 1 commit into
payloadcms:mainfrom
jhjh1214:fix/edit-menu-items-visibility
Open

fix(ui): show dot menu when editMenuItems exist regardless of create/delete permission#16989
jhjh1214 wants to merge 1 commit into
payloadcms:mainfrom
jhjh1214:fix/edit-menu-items-visibility

Conversation

@jhjh1214

Copy link
Copy Markdown

Fixes #16975

What?

editMenuItems defined on a collection were silently hidden when both create and delete permissions were denied, because the three-dot menu's visibility (showDotMenu) was gated entirely on those permissions.

Why?

Custom editMenuItems represent arbitrary business logic unrelated to CRUD operations. A collection that blocks creation (e.g. webhook-only) and deletion (e.g. audit trail) should still expose custom actions like "Resend confirmation email".

How?

Added EditMenuItems as an additional condition in showDotMenu so the popup renders whenever custom items are present, regardless of create/delete access.

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.

Custom editMenuItems are hidden when a collection denies both create and delete access

1 participant