From 620b91f22a2e5f13d8bf5c700febd8debc9e4c3a Mon Sep 17 00:00:00 2001 From: Matthias Nannt Date: Sat, 10 May 2025 18:22:18 +0200 Subject: [PATCH] mock getIsSpamProtectionEnabled function --- apps/web/modules/ee/license-check/lib/utils.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/apps/web/modules/ee/license-check/lib/utils.ts b/apps/web/modules/ee/license-check/lib/utils.ts index 2536f179b8..4cf4e88c07 100644 --- a/apps/web/modules/ee/license-check/lib/utils.ts +++ b/apps/web/modules/ee/license-check/lib/utils.ts @@ -394,18 +394,8 @@ export const getIsSamlSsoEnabled = async (): Promise => { export const getIsSpamProtectionEnabled = async ( billingPlan: Organization["billing"]["plan"] ): Promise => { - if (!IS_RECAPTCHA_CONFIGURED) return false; - - if (E2E_TESTING) { - const previousResult = await fetchLicenseForE2ETesting(); - return previousResult?.features ? previousResult.features.spamProtection : false; - } - if (IS_FORMBRICKS_CLOUD) - return billingPlan === PROJECT_FEATURE_KEYS.SCALE || billingPlan === PROJECT_FEATURE_KEYS.ENTERPRISE; - - const licenseFeatures = await getLicenseFeatures(); - if (!licenseFeatures) return false; - return licenseFeatures.spamProtection; + logger.debug(billingPlan); + return false; }; export const getOrganizationProjectsLimit = async (