Answer the question
In order to leave comments, you need to log in
How to organize using Pyqt the differentiation of functionality by user roles?
There is already developed user interface. Everything works in conjunction with SQLITE.
It is required to implement logins... I.e. In order for the user to go through the authorization procedure, all users must have different roles, which interface will be displayed will depend on these roles.
Can you please tell me how to organize it? To create users, I can roughly imagine how to implement the authorization procedure, but I don’t understand how to delegate roles. Best of all, I suppose you need to draw your own interface for each and, when authorizing, call exactly the interface method that corresponds to the mark in the database (belonging to a group)? Am I thinking right?
Ps Thanks a lot for your help in advance. I understand that the question is complicated, but those who understand the GUI, please help, I can treat you with a cake / beer / cognac :-)
Answer the question
In order to leave comments, you need to log in
Depends on how much the interface changes. It may be enough to disable controls that are not available to the role of the current user, or it may be necessary to draw a separate UI.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question