I have a case where I need to localhost:3000/dashboardpoint to different view / controller combinations depending on the type of user. There are two main types in my application: Subscriberand Publisher.
When Publisherlogs in and goes to /dashboard, I need to show the Publisher toolbar.
When I Subscriberregister and go to /dashboard, I need to show the subscribers panel.
At the moment, the Publisher control panel is called Dashboard, and the Subscriber control panel is called Profile. Seems a little dirty to me.
Question. What is the best way to call the right controller, load the right data and display the correct template / layout based on a specific user?
source
share