I am working on web application and I have 3 types of users. As we know different users have different access rights. Suppose there are three users A,B,C.

And there are total of 5 menus, example menu1,menu2.menu3,menu4,menu5.

I have to set access rights like

User A can access menu1,menu2.menu3,menu4,menu5.

User B can access menu2.menu3.

User C can access menu3,menu4,menu5.

In this I may add one more user having different access rights.

My question is how I design database and what logic I should apply to get this result.

I have one solution but I am trying it through the database. That solution is to keep different master pages for different users but that's not a good solution.