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

Function getWorkspaceInvitePolicy

apps/sim/lib/workspaces/policy.ts:96–103  ·  view source on GitHub ↗
(
  workspaceState: WorkspaceOwnershipState
)

Source from the content-addressed store, hash-verified

94 * keep their access — this policy only governs *new* invitations.
95 */
96export async function getWorkspaceInvitePolicy(
97 workspaceState: WorkspaceOwnershipState
98): Promise<WorkspaceInvitePolicy> {
99 const billedPlanCategory = isBillingEnabled
100 ? await resolveBilledPlanCategory(workspaceState)
101 : 'free'
102 return evaluateWorkspaceInvitePolicy(workspaceState, { billedPlanCategory })
103}
104
105/**
106 * Pure evaluator — given the billed account's resolved plan category,

Callers 4

policy.test.tsFile · 0.90
createWorkspaceFunction · 0.90
route.tsFile · 0.90

Calls 2

Tested by

no test coverage detected