Skip to content

BeechCMS


BeechCMS / @beechcms/core / formatScopes

Function: formatScopes() ​

formatScopes(scopes): string

Serializes scopes back to the space-delimited wire/storage format.

Parameters ​

scopes ​

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")[]

Returns ​

string