Skip to content

Commit

Permalink
patch: holer role guard (#884)
Browse files Browse the repository at this point in the history
Signed-off-by: tipusinghaw <tipu.singh@ayanworks.com>
Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
  • Loading branch information
tipusinghaw authored and KulkarniShashank committed Sep 11, 2024
1 parent d44b914 commit ff4eb8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/api-gateway/src/authz/jwt.strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ export class JwtStrategy extends PassportStrategy(Strategy) {
if (!userDetails) {
throw new NotFoundException(ResponseMessages.user.error.notFound);
}

if (userInfo && userInfo?.['attributes'] && userInfo?.['attributes']?.userRole) {
userDetails['userRole'] = userInfo?.['attributes']?.userRole;
}
//TODO patch to QA
// if (userInfo && userInfo?.['attributes'] && userInfo?.['attributes']?.userRole) {
// userDetails['userRole'] = userInfo?.['attributes']?.userRole;
// }

return {
...userDetails,
Expand Down

0 comments on commit ff4eb8f

Please sign in to comment.