fix: deactivated user check

This commit is contained in:
Philipinho
2025-07-14 10:28:42 -07:00
parent 608783b5cf
commit 16ec218ba7

View File

@ -42,7 +42,7 @@ export class JwtStrategy extends PassportStrategy(Strategy, 'jwt') {
}
const user = await this.userRepo.findById(payload.sub, payload.workspaceId);
if (!user || user.deletedAt) {
if (!user || user.deactivatedAt || user.deletedAt) {
throw new UnauthorizedException();
}