block invite link if workspace subscription is not active (#4991)
Fixes https://github.com/twentyhq/twenty/issues/4980 ## Test tested locally with incomplete and active
This commit is contained in:
@ -132,11 +132,12 @@ export class SignInUpService {
|
||||
}) {
|
||||
const workspace = await this.workspaceRepository.findOneBy({
|
||||
inviteHash: workspaceInviteHash,
|
||||
subscriptionStatus: 'active',
|
||||
});
|
||||
|
||||
assert(
|
||||
workspace,
|
||||
'This workspace inviteHash is invalid',
|
||||
'This workspace inviteHash is invalid or the workspace is not active',
|
||||
ForbiddenException,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user