Permissions & Role-Based UI Checklist
The backend enforces all permissions. The frontend only adjusts the UI to reflect them. Never rely on hiding a button as a security measure.
Back to Frontend Checklist
0/0 completed
2. Hide vs Disable
| Approach | When to Use |
|---|---|
| Hide | User role has no access at all and seeing option would confuse them |
| Disable | User might have access in some contexts or needs to know feature exists |
| Show with explanation | Upgrade or role change would grant access |
3. Reading the User's Role
4. Buttons
5. Form Fields
6. Navigation
7. Tables / Lists
8. Page-Level Access
9. Partial Access
10. Role Changes
Security Rule
Frontend role-based UI is not security. Backend permissions must block unauthorized API calls even if the user manually triggers the endpoint.