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

Function isOrgScopedSubscription

apps/sim/lib/billing/subscriptions/utils.ts:125–131  ·  view source on GitHub ↗
(
  subscription: { referenceId?: string | null } | null | undefined,
  userId: string
)

Source from the content-addressed store, hash-verified

123 * `isTeam` / `isOrgPlan` return false.
124 */
125export function isOrgScopedSubscription(
126 subscription: { referenceId?: string | null } | null | undefined,
127 userId: string
128): boolean {
129 if (!subscription?.referenceId) return false
130 return subscription.referenceId !== userId
131}
132
133/**
134 * Get the minimum usage limit for an individual user (used for validation).

Callers 15

getRateLimitKeyMethod · 0.90
deriveBillingContextFunction · 0.90
maybeNotifyLimitFunction · 0.90
getUserUsageDataFunction · 0.90
getUserUsageLimitInfoFunction · 0.90
initializeUserUsageLimitFunction · 0.90
updateUserUsageLimitFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected