remove cloud env check

This commit is contained in:
Philipinho 2025-03-06 22:30:24 +00:00
parent 315afd6818
commit e9b7273489

View File

@ -36,11 +36,8 @@ export class JwtStrategy extends PassportStrategy(Strategy, 'jwt') {
throw new UnauthorizedException();
}
// CLOUD ENV
if (this.environmentService.isCloud()) {
if (req.raw.workspaceId && req.raw.workspaceId !== payload.workspaceId) {
throw new UnauthorizedException('Workspace does not match');
}
if (req.raw.workspaceId && req.raw.workspaceId !== payload.workspaceId) {
throw new UnauthorizedException('Workspace does not match');
}
const workspace = await this.workspaceRepo.findById(payload.workspaceId);