Skip to main content

FR-01.12 — Role-Based Access Control

Trigger: An authenticated user requests a protected function/route.

System shall:

  • Identify the authenticated user.
  • Determine the user's role.
  • Verify that the role is authorized for the requested operation.
  • Reject unauthorized access.

Example:

UserResourceResult
CompanyOwn productsAllowed
CompanyAnother company's productsDenied
RepOwn commissionsAllowed
RepAnother rep's commissionsDenied
AdminAuthorized platform functionsAllowed
RepAdmin functionsDenied

Acceptance Criteria:

  • PASS: Authorized role can access permitted functionality.
  • PASS: Unauthorized role is denied.
  • FAIL: Changing a client-side role value bypasses authorization.