remove cloud env check
This commit is contained in:
parent
315afd6818
commit
e9b7273489
1 changed files with 2 additions and 5 deletions
|
|
@ -36,11 +36,8 @@ export class JwtStrategy extends PassportStrategy(Strategy, 'jwt') {
|
||||||
throw new UnauthorizedException();
|
throw new UnauthorizedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
// CLOUD ENV
|
if (req.raw.workspaceId && req.raw.workspaceId !== payload.workspaceId) {
|
||||||
if (this.environmentService.isCloud()) {
|
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);
|
const workspace = await this.workspaceRepo.findById(payload.workspaceId);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue