Permission belongs to a person and a scope — never to a role name, and never to a hidden button.
Status at ebf7cf0: Partial — the core PBAC service, role templates, per-user overrides and branch overrides exist. Four named gaps remain.
A user opens a module or performs a protected action.
Story. As an Administrator, I want role templates to be defaults and per-user grants to be explicit, so that access matches actual responsibility.
Acceptance. The effective permission view explains template, override and branch scope.
Story. As an Administrator, I must not grant authority above my own effective level, so that delegated administration has a ceiling.
Acceptance. The backend rejects any attempted over-grant even if the UI is bypassed.
Story. As the system, I must enforce permission on every protected backend action, so that hidden buttons are not the security boundary.
Acceptance. Complaints, OE and field endpoints apply the same PBAC and record-scope checks.
Built: the core module-level PBAC service, role templates, per-user overrides and branch overrides.
Gaps:
| Gap | Detail |
|---|---|
| Complaints are authentication-only | Any authenticated user reaches them; no PBAC check |
/oe routes bypass PBAC |
Deliberately, today |
| No grant ceiling | Role administration lets an administrator grant above their own level |
| Tech/Subcon inherit Sale | They ride the Sale template in the original migration. That is a gap, not a design. |
| Sales ACC No. exposed | The order-item API returns the AutoCount account to general order viewers |
Every LG route is gated as permission:partner,view or permission:partner,manage — a module plus an action, not a role name. The route file also describes an external LG Admin role whose only module is partner, confining that user to the partner section.
So the ruling "avoid tying permission and scope to ROLE" is half implemented. Module and action exist. What is missing is the scope dimension — this manager, this branch, read only. See LG partner module.
New to these terms? See the Glossary.