Fix billing check for trial sub status (#5054)

## 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
This commit is contained in:
Weiko
2024-04-19 15:16:08 +02:00
committed by GitHub
parent 36d4c38c3d
commit 3a959248f9

View File

@ -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,
);