Is there a way to impersonate a user?
Example:
- User with role "manager" logins
- The manager select ordinary user from a combo.
- Now the selected user data is used in User::create() and the Dashboards are reloaded to reflect this user permissions.
- On ordinary user logout, the same proccess will occur to go back to manager Dashboards.
I guess the questions are:
- A new User::create() can replace a previous created user?
- If yes, how to refresh all dashboard, including App menu, to reflect this new user permissions?
- If not, the best second option would be to open a new windows with selected user credentials as params to autologin. So, in this case, can Dashboard be configured to be able to hold login in multiple accounts in the same browser without logout the other user? Maybe with a different subdomain?