enable team billing when `HOSTED_CAL_FEATURES` isset (#5516)
* 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 <rene.mueller@clicksports.de>pull/5576/head
parent
cb96b12108
commit
b201067f86
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue