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

Function checkTeamPlan

apps/sim/lib/billing/subscriptions/utils.ts:115–117  ·  view source on GitHub ↗
(subscription: any)

Source from the content-addressed store, hash-verified

113}
114
115export function checkTeamPlan(subscription: any): boolean {
116 return isTeam(subscription?.plan) && hasPaidSubscriptionStatus(subscription?.status)
117}
118
119/**
120 * True when the subscription's `referenceId` is an org (i.e. not the

Callers 5

isProPlanFunction · 0.90
isTeamPlanFunction · 0.90
isTeamOrgAdminOrOwnerFunction · 0.90
utils.test.tsFile · 0.90

Calls 2

isTeamFunction · 0.90

Tested by

no test coverage detected