User levels [closed]

-1

I am developing a system for a company and as you know, there are user levels and not everyone can have access to all the functionality of the system.

My question is this: that it is convenient at the time of isolation, to have a menu for each type of user, where you are restricted access to information that you can not access. Or have different subprograms for each type of user.

I ask about the fact of not having such a heavy program for all types of users, since they will not access all the functionality.

Exactly, it's exactly how I had it developed. But the head of the company is asking me to change and have different projects. I have my Login window and, according to the type of user, it fires for the corresponding menu. Anyway, I'm going to see how I can see reason. Thanks for collaborating!

    
asked by Carlos 30.01.2017 в 18:32
source

3 answers

0

The main thing is the login menu, by means of the user level you enter you can or can not grant permissions to show certain options, it can be showing a different view depending on the level. If in your case you use a single menu for user verification and that is what bothers you, you can try implementing a menu that has a tab for the user and another for the administrator.

    
answered by 31.01.2017 / 12:23
source
2

I think the important thing is the LOGIN and that each type of user has access to certain functions. I think it would be a good idea to have a menu for each user after the login .

    
answered by 30.01.2017 в 18:38
0

I think you should authenticate by means of the login and then if the login is correct, you would have to authorize each user by means of permissions that are saved in the database and that your menu is based on those permissions, and that this gives you the flexibility of not having to keep n menus by n users, you can check spring security or apache shiro

    
answered by 31.01.2017 в 06:36