Skip to content

Commit

Permalink
💚 [Release] skip guard 검증 로직 롤백 (#642)
Browse files Browse the repository at this point in the history
## Summary
skip guard 검증 로직 롤백
  • Loading branch information
Kimhan-nah authored Jul 23, 2024
2 parents 1d15fc9 + 17fbdcd commit bfd056f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/src/auth/guard/user.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export class UserGuard extends AuthGuard('user') {
}

canActivate(context: ExecutionContext): boolean | Promise<boolean> | Observable<boolean> {
const skipUserGuard = this.reflector.get<boolean>('skipUserGuard', context.getHandler());
if (skipUserGuard) {
return true;
}
return super.canActivate(context);
}
}

0 comments on commit bfd056f

Please sign in to comment.