Status: Accepted (in force). Reconstructed.
Two forces pull in opposite directions. Admins want to say "you run payroll" in one click (coarse). But real orgs need "payroll, but can't cancel a run" and "HR for Lagos only" (fine). A single flat list of ~230 permissions is unusable to assign by hand; a fixed set of ~26 tiers can't express every shape.
Model access as two stacked layers:
AdminRole bundles (Payroll Admin, HR Admin, …), carried in the JWT roles claim and enforced at the controller by [Authorize] (+ the PrimaryOrSecondary policy for owner-only actions).permissions claim and checked by the frontend RequireRoutePermit → usePermissions, plus service-level checks.AdminRolesService) when no tier fits.The catalog exists in two representations joined by alias: 199 backend Permission constants (title-case, e.g. "Can create employees", persisted as AspNetPermission/AspNetRolePermission) and 230 frontend can_* aliases (snake_case, permissions.ts).
Good:
alias join lets backend and frontend evolve their own representations while staying reconcilable.Bad / costs: