Skip to content

Commit

Permalink
Merge pull request #5 from vishnuvinay89/all-saas-0.1-dev
Browse files Browse the repository at this point in the history
Unauthorize issue
  • Loading branch information
sudeeppr1998 authored Dec 26, 2024
2 parents 23f5215 + 0bc93c9 commit 6092db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/middleware/middleware.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export class MiddlewareServices {
req.userId,
req.headers['tenantid'],
);
if (rolesOfTenant.name == 'UnauthorizedException') {
if (!rolesOfTenant && rolesOfTenant.response.error == 'Unauthorized') {
return reject("User doesn't have appropriate privilege");
}

Expand Down

0 comments on commit 6092db6

Please sign in to comment.