Commit 823bda2
authored
fix(ui): show dot menu when editMenuItems exist regardless of create/delete permission (#16989)
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.1 parent 8dfb802 commit 823bda2
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
| 202 | + | |
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
| |||
424 | 425 | | |
425 | 426 | | |
426 | 427 | | |
427 | | - | |
| 428 | + | |
428 | 429 | | |
429 | 430 | | |
430 | 431 | | |
| |||
0 commit comments