Status: Accepted (in force). Reconstructed.

Context

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.

Decision

Model access as two stacked layers:

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).

Consequences

Good:

Bad / costs:

Alternatives