Skip to content

BeechCMS


BeechCMS / @beechcms/core / isPermission

Function: isPermission() ​

isPermission(value): value is "content:read" | "content:create" | "content:update" | "content:delete" | "manage_users" | "manage_roles" | "view_analytics" | "manage_layout" | "manage_seeds"

Narrows an arbitrary string to a known permission.

Parameters ​

value ​

string

Returns ​

value is "content:read" | "content:create" | "content:update" | "content:delete" | "manage_users" | "manage_roles" | "view_analytics" | "manage_layout" | "manage_seeds"