Roles: admin, user, viewer
Roles: admin, user, viewer
A viewer can read and is refused every write. The check lives in one place, where the caller is resolved, and a test fails if any route is reachable without authentication and is not listed with a reason.
What this does not establish: Roles are per project; they do not express finer permissions than that, except the approver flag.