Scheduling infrastructure for absolutely everyone.
enable team billing when `HOSTED_CAL_FEATURES` isset (#5516)
René Müllerb201067f86a5
diff --git a/packages/lib/constants.ts b/packages/lib/constants.tsindex 911a6be2e19..614ea63782f 100644--- a/packages/lib/constants.ts+++ b/packages/lib/constants.ts@@ -41,5 +41,5 @@ export const IS_STRIPE_ENABLED = !!(process.env.NEXT_PUBLIC_STRIPE_PUBLIC_KEY &&process.env.STRIPE_PRIVATE_KEY);-/** Self hosted shouldn't checkout when creating teams */-export const IS_TEAM_BILLING_ENABLED = IS_STRIPE_ENABLED && !IS_SELF_HOSTED;+/** Self hosted shouldn't checkout when creating teams unless required */+export const IS_TEAM_BILLING_ENABLED = IS_STRIPE_ENABLED && (!IS_SELF_HOSTED || HOSTED_CAL_FEATURES);