MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / isAdminRole

Function isAdminRole

apps/api/src/lib/acl/role-coercion.ts:17–17  ·  view source on GitHub ↗
(role: Role)

Source from the content-addressed store, hash-verified

15export const isOwnerRole = (role: Role): boolean => role === ROLE.owner;
16
17export const isAdminRole = (role: Role): boolean => role === ROLE.admin;
18
19export const coerceRole = (raw: string): Role => {
20 if (!isRole(raw)) {

Callers 2

accounts.routes.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected