Skip to content

Commit

Permalink
fix(AuthGateway): let bl-next decide if you are employee
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianAndersen committed Aug 23, 2024
1 parent 74440a2 commit f232c56
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/app/auth-gateway/auth-gateway.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@ export class AuthGatewayComponent implements OnInit {

ngOnInit(): void {
setTimeout(() => {
this.router.navigate(
[
this.authService.isEmployee()
? "/"
: "/auth/permission/denied",
],
{ replaceUrl: true }
);
this.router.navigate(["/"], { replaceUrl: true });
}, 200);
}
}

0 comments on commit f232c56

Please sign in to comment.