(
subscription: { referenceId?: string | null } | null | undefined,
userId: string
)
| 123 | * `isTeam` / `isOrgPlan` return false. |
| 124 | */ |
| 125 | export 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). |
no outgoing calls
no test coverage detected