From b201067f86a56c70da787fb1e0eda63c1e513f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20M=C3=BCller?= <48084558+rene-mueller@users.noreply.github.com> Date: Fri, 18 Nov 2022 19:59:01 +0100 Subject: [PATCH] enable team billing when `HOSTED_CAL_FEATURES` isset (#5516) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * enable team billing when `HOSTED_CAL_FEATURES` isset * changed comment above of `IS_TEAM_BILLING_ENABLED` in constants.ts Co-authored-by: René Müller --- packages/lib/constants.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/lib/constants.ts b/packages/lib/constants.ts index 911a6be2e1..614ea63782 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);