MCPcopy Index your code
hub / github.com/simstudioai/sim / isOrganizationWorkspace

Function isOrganizationWorkspace

apps/sim/lib/workspaces/policy.ts:66–74  ·  view source on GitHub ↗
(
  workspaceState: Pick<WorkspaceOwnershipState, 'workspaceMode' | 'organizationId'>
)

Source from the content-addressed store, hash-verified

64}
65
66export function isOrganizationWorkspace(
67 workspaceState: Pick<WorkspaceOwnershipState, 'workspaceMode' | 'organizationId'>
68): boolean {
69 return (
70 workspaceState.workspaceMode === WORKSPACE_MODE.ORGANIZATION &&
71 workspaceState.organizationId !== null &&
72 workspaceState.organizationId.length > 0
73 )
74}
75
76/**
77 * Computes whether new members can be invited to the given workspace

Callers 2

route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected