Skip to content

Commit

Permalink
Resolved #433 Forbidden access redirects to login page
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterl committed Oct 4, 2023
1 parent d8e5a61 commit a99fec1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/app/services/session/authentication.sevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ export class AuthenticationService {
if (!role) {
return this.router.parseUrl(`/login?returnUrl=${state.url}`)
} else if (route.data.roles && route.data.roles.indexOf(role) === -1) {
return this.router.parseUrl('/forbidden');
//return this.router.parseUrl('/forbidden');
return this.router.parseUrl(`/login?returnUrl=${state.url}`)
} else {
return true;
}
Expand Down

0 comments on commit a99fec1

Please sign in to comment.