Skip to content

Commit

Permalink
feat: redirect to dashboard instead of unauthorized
Browse files Browse the repository at this point in the history
  • Loading branch information
illfixit committed Oct 18, 2024
1 parent 0d08063 commit 7c2a379
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const requiresRole: CanActivateFn = (route: ActivatedRouteSnapshot) => {
if (hasAnyRole) {
return true;
} else {
router.navigate(['/unauthorized']);
router.navigate(['/dashboard']);
return false;
}
}),
Expand Down

0 comments on commit 7c2a379

Please sign in to comment.