Reputation: 3
Am doing a project in C#.net.I have to use the same forms to all kind of users but by controlling their access by disabling some menu items to some users.For example i have 2 main users(Admin and Employee).Admin have all the controls over the forms but employees are having some restrictions.This restriction is applied in the form by disabling some menu items. Is there any way to code this.
Upvotes: 0
Views: 327
Reputation: 1709
You should probably use a kind of Acl system such as in PHP. When your user is log just check if he have the right to acces in the menu. but be carefull when the menu isn't show that doesn't mean it is disable.
Upvotes: 1