Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
🐛 Ignore auth if user is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Nov 26, 2020
1 parent 3d452fd commit 4c5c427
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/auth/scope.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export class ScopesGuard implements CanActivate {
if (!scopes) return true;
const user: AccessTokenParsed = request.user;
let authorized = false;
if (!user) return false;
for (const userScope of user.scopes) {
for (let scope of scopes) {
for (const key in request.params)
Expand Down

0 comments on commit 4c5c427

Please sign in to comment.