Throw 403 when any Guard.canActivate returns false
Sorikairox opened this issue · 0 comments
Sorikairox commented
Describe the bug
When a guard's canActivate
method returns false, the controllers' code will be executed regardless of the fact that it shouldn't.
Expected behavior
Stop execution by throwing a 403 error if canActivate
returns false