Skip to content

Commit

Permalink
Fix billing check for trial sub status (twentyhq#5054)
Browse files Browse the repository at this point in the history
## Context
Sub status is not binary as you can also be in trial mode and still
should be able to share invite link. This PR should fix this issue
  • Loading branch information
Weiko authored Apr 19, 2024
1 parent 36d4c38 commit 3a95924
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);

Expand Down

0 comments on commit 3a95924

Please sign in to comment.