BeechCMS / @beechcms/core / permissionsHeldAnywhere
Function: permissionsHeldAnywhere()
permissionsHeldAnywhere(
effective):ReadonlySet<"content:read"|"content:create"|"content:update"|"content:delete"|"manage_users"|"manage_roles"|"view_analytics"|"manage_layout"|"manage_seeds">
Every permission the actor holds at ANY scope — global or seed-scoped — folded into one set.
This is deliberately NOT an authorization primitive: it answers "could this actor ever grant X somewhere", not "may this actor do X here". Only hasPermission and canGrant answer the latter, and every route-level decision must keep using them.
Parameters
effective
Returns
ReadonlySet<"content:read" | "content:create" | "content:update" | "content:delete" | "manage_users" | "manage_roles" | "view_analytics" | "manage_layout" | "manage_seeds">