Enforce the central route policy (ROUTE_SCOPES in
config/auth-policy.ts) for an authenticated request. Sends 403 and
returns false when the principal lacks the route's scope, or when the
route has no policy entry (fail closed). A request that matched no
route passes, so the not-found handler can answer 404.
Enforce the central route policy (
ROUTE_SCOPESinconfig/auth-policy.ts) for an authenticated request. Sends 403 and returns false when the principal lacks the route's scope, or when the route has no policy entry (fail closed). A request that matched no route passes, so the not-found handler can answer 404.