BeechCMS / @beechcms/core / AllowAllRoleGuard
Class: AllowAllRoleGuard
Stub guard: grants every requested scope to every caller.
Retained as the explicit, directly-tested permissive baseline and as the test double for suites that are not exercising arbitration. It is NO LONGER the production binding — repositoryMiddleware binds PermissionRoleGuard.
Implements
Constructors
Constructor
new AllowAllRoleGuard():
AllowAllRoleGuard
Returns
AllowAllRoleGuard
Methods
arbitrate()
arbitrate(
_effective,requestedScopes):Promise<ScopeGrantDecision>
Parameters
_effective
requestedScopes
readonly ("content:read" | "content:delete" | "schema:read" | "schema:write" | "content:write" | "media:read" | "media:write" | "automations:read" | "automations:write" | "users:read" | "users:write" | "settings:read" | "settings:write" | "analytics:read" | "agent:read" | "agent:approve")[]
Scopes the client asked for, already validated.
Returns
Promise<ScopeGrantDecision>