Skip to content

BeechCMS


BeechCMS / @beechcms/core / permissionsForScope

Function: permissionsForScope() ​

permissionsForScope(effective, scope): ReadonlySet<"content:read" | "content:create" | "content:update" | "content:delete" | "manage_users" | "manage_roles" | "view_analytics" | "manage_layout" | "manage_seeds">

Returns everything the caller may do within one scope: the union of their global permissions and the permissions granted on that specific seed.

Parameters ​

effective ​

EffectivePermissions

scope ​

string

Returns ​

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