[users-module] Redirect users on individual dashboard based on role.

lckamal - 5 months ago

I want to redirect user based on roles assigned to him. if hasRole('admin') redirect to /admin if hasRole('user') redirect to /user/dashboard if hasRole('editor') redirect to /editor/dashboard

I tried with UserWasLogged in event but doesn't work.

Answer

ryanthompson - 5 months ago

Let's keep this discussion in the other thread ^_^

https://pyrocms.com/forum/channels/modules/users-module-userwasloggedin-event-if-fired-without-logged-in