Role-Enforced UI (RBAC Throughout Frontend) #74
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Auth middleware protects the API, but the UI must also cleanly reflect what each role can and cannot do — not just hide buttons, but prevent unauthorized actions at every level.
Tasks
src/components/RequireRole.tsx:RequireRole:403is received, show a toast "You don't have permission to perform this action" (defense in depth)Acceptance Criteria
RequireRole, not scattered as inline conditionals