forked from Yara724/api
Merge pull request 'YARA-1148: add CALL_CENTER to LocalActorAuthGuard role allowlist' (#226) from s.yahyaee/yara724-api:main into main
Reviewed-on: Yara724/api#226
This commit is contained in:
@@ -46,6 +46,7 @@ export class LocalActorAuthGuard implements CanActivate {
|
||||
RoleEnum.FILE_MAKER,
|
||||
RoleEnum.FILE_REVIEWER,
|
||||
RoleEnum.SUPER_ADMIN,
|
||||
RoleEnum.CALL_CENTER,
|
||||
].includes(payload.role)
|
||||
) {
|
||||
throw new UnauthorizedException("User role is not authorized");
|
||||
|
||||
Reference in New Issue
Block a user