mirror of
https://github.com/twentyhq/twenty.git
synced 2024-10-04 12:57:10 +03:00
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:
parent
6fa2aee624
commit
6211f84de8
@ -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,
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user