Answer the question
In order to leave comments, you need to log in
How to differentiate access rights to the program?
Good afternoon!
1. There is a program (C# winforms).
2. MySQL database with user base and access rights.
The program implements the function of checking access rights on if..else during authorization in the program (initial window), if access is allowed, the components are visible, if access is denied, the components are invisible.
There was a problem with the design of the program by this method, the number of components is over 210 pieces, which clutters up the program code.
Questions:
1. How can this function be optimized?
2. How to disconnect a user from the program if during his work he was changed access rights.
Are there any libraries for this job?
Answer the question
In order to leave comments, you need to log in
Maybe this?
0) Role Based Security In .NET
1) Controls Based Security in a Windows Forms Application
2) role based access
3) Fluent API of a Role based access control implemen...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question