remove cloud env check
This commit is contained in:
parent
315afd6818
commit
e9b7273489
1 changed files with 2 additions and 5 deletions
|
|
@ -36,12 +36,9 @@ 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');
|
||||
}
|
||||
}
|
||||
|
||||
const workspace = await this.workspaceRepo.findById(payload.workspaceId);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue