MCPcopy
hub / github.com/simstudioai/sim / isOrgAdminRole

Function isOrgAdminRole

packages/platform-authz/src/predicates.ts:35–37  ·  view source on GitHub ↗
(role: string | null | undefined)

Source from the content-addressed store, hash-verified

33 * erased) so client bundles can import it without pulling in the DB client.
34 */
35export function isOrgAdminRole(role: string | null | undefined): boolean {
36 return role === 'owner' || role === 'admin'
37}

Callers 15

isAdminOrOwnerFunction · 0.90
useSubscriptionUpgradeFunction · 0.90
renderWorkspaceMemberRowFunction · 0.90
CredentialSetsFunction · 0.90
BillingFunction · 0.90
useUpgradeStateFunction · 0.90
DataDrainsSettingsFunction · 0.90
DataRetentionSettingsFunction · 0.90
WhitelabelingSettingsFunction · 0.90
getOrgAdminWorkspaceRowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected