| name | jeff-permissions |
| description | Jeff's permission-gating conventions using useCan(action, subject). Use when adding or changing conditional actions and protected UI flows. |
Jeff's Permissions
Use authorization checks consistently across routes and actions.
Apply when
- Adding create/update/delete/view actions.
- Showing/hiding route-level primary actions and menus.
- Building protected UI sections.
Rules
- Use
useCan(action, subject) from @/lib/permissions.
- Gate both prominent and secondary actions.
- Match subject names to backend module names.
- Avoid exposing action affordances that user cannot execute.
Common actions:
create
read (view alias where applicable)
update
delete
Validation checklist