Hi,
While going through the code, I noticed that the code written in the routeChangeStart is not enough to protect the routes.
For instance, if a user is not logged in, the authorization service returns "loginRequired". Then, after that, if the user login successfully, he/she is being redirected to the page requested. However, a second check is required to make sure the user has the proper permission.
Do you see this?
Best regards
Bilal Haidar