Skip to content

BeechCMS


BeechCMS / @beechcms/core / EffectivePermissions

Interface: EffectivePermissions ​

A caller's resolved authority, computed once per request from their active assignments. Purely additive: there is no negative permission and no conflict resolution between roles.

Properties ​

byScope ​

byScope: ReadonlyMap<string, ReadonlySet<"content:read" | "content:create" | "content:update" | "content:delete" | "manage_users" | "manage_roles" | "view_analytics" | "manage_layout" | "manage_seeds">>

Permissions held at a specific seed slug, keyed by that slug.


global ​

global: ReadonlySet<"content:read" | "content:create" | "content:update" | "content:delete" | "manage_users" | "manage_roles" | "view_analytics" | "manage_layout" | "manage_seeds">

Permissions held at GLOBAL_SCOPE; they apply to every seed.