vaadin / bakery-app-starter-fw8-spring

Internal repository for Bakery App Starter for FW8 and Spring
Other
0 stars 2 forks source link

User roles should have default/home view #490

Open KatriHaapalinna opened 6 years ago

KatriHaapalinna commented 6 years ago

Users (user roles) should have a 'home view' they default to after logging in.

Right now if an admin user logs out of Bakery while in .../#!user-admin view (only accessible to admins), they are directed to the login page with URL and URI '.../login.html#!user-admin'. When a non-admin user logs in from this page, they will be directed to the .../#!user-admin view showing 'Access denied' Label. The login page should not persist the URI fragment of the page on which a user who logged out was regardless of user's access rights anyway, in my opinion.