diff --git a/frontend/src/app/services/session/authentication.sevice.ts b/frontend/src/app/services/session/authentication.sevice.ts index bdc35e76..f6db0a46 100644 --- a/frontend/src/app/services/session/authentication.sevice.ts +++ b/frontend/src/app/services/session/authentication.sevice.ts @@ -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; }