Employee X can see the dashboard screen and the scheduling screen. Employee Y can see the query screen.
How to organize it in the most professional way? I thought the following form:
They can view all screens, however, if you click on a icon / page that does not have permission, the user will receive a message that has no permission for it.
OR, simply hide all tabs and icons that he doesn't have permission from his Layout.
What's the best way ?
You have to hide pages from menu/sidebar as well as you also need to check when page is being accessed. In Laravel I am using some packages which uses user-role-model mapping.
Both, you have to hide what he don't have permission to see and show a messange if he tried entering a page (he could copy a link or write it at hand) that he don't have permission to enter.
Обсуждают сегодня