Skip to content

The open alternative to Salesforce, designed for AI.

Fix billing check for trial sub status (#5054)

Weiko3a959248f9b8
diff --git a/packages/twenty-server/src/engine/core-modules/auth/services/sign-in-up.service.ts b/packages/twenty-server/src/engine/core-modules/auth/services/sign-in-up.service.ts
index cb3f9cb3db6..954c649aaf3 100644
--- a/packages/twenty-server/src/engine/core-modules/auth/services/sign-in-up.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/auth/services/sign-in-up.service.ts
@@ -144,8 +144,8 @@ export class SignInUpService {
assert(
!this.environmentService.get('IS_BILLING_ENABLED') ||
- workspace.subscriptionStatus === 'active',
- 'Workspace subscription status needs to be active',
+ workspace.subscriptionStatus !== 'incomplete',
+ 'Workspace subscription status is incomplete',
ForbiddenException,
);