Red Dragon ERP User and authority management -- The first 24 piece
Keep a log of “ Open source software ” The birth of
【 Enter the address Light up the stars 】---- Looking forward to an encouragement
Blog open source address :
Code cloud :https://gitee.com/redragon/redragon-erp
Talking about process
A few previous articles have combed out ERP The main process of the system , This article begins with a talk about the rights interpenetrated in the mainstream process . First of all, we should make clear the meaning of authority and user in the process . The so-called process runs through a problem from beginning to end is who does what . This person is the user in the system , And what you do is authority controls . So it seems that permissions are not in the process , In fact, it does precise control at every node and even every action . Secondly, let's talk about the internal process of authority module . Create permissions 、 Create the role 、 Create user , Then associate the user with a role , Role Association permission , Finally, the basic operation process of authority module is completed .
Say business
Let's talk about the functions of user and permission management and what problems have been solved .
(1) The account is separated from the user : To be clear, the users here only care about the login account , Personal information about people who don't have access to the account , The information is in ERP In other modules of . This design separates the user from the actual business , More flexible in use .
(2) Definition of roles and permissions : Permissions are used to control what users can do , In principle, we can only make logical decisions through permissions . Roles can be simply understood as groups of permissions , Put a class of permissions together to form a collection of practical meanings .
(3) Classification of authority : Permissions are generally divided into menu permissions 、 Operating authority 、 Data access . Menu permissions control which modules or functions users can see ; The operation authority controls what specific operations the user can do , Which buttons can I click on ; Data permissions control which data users can see in the system , What data can be edited .
Say operation
One 、 User management
Operation instructions :
1、 Get into “ User management ” menu , You can view a list of all users
2、 New users
(1) Click on “ New users ” Button , Go to the edit page
(2) Enter the user name and password
(3) Click on “ determine ” Button , Complete user creation
3、 Change Password
(1) On the user list page , Click on “ edit ” Button
(2) Click on “ Change Password ” Button , And make sure to complete the password change
Two 、 Role management
Operation instructions :
1、 Get into “ Role management ” menu , You can view a list of all the characters
2、 New role
(1) Click on “ New role ” Button
(2) Enter the role code and name , Save it
3、 ... and 、 Rights management
Operation instructions :
1、 Get into “ Rights management ” menu , You can view the list of all permissions
2、 New permissions
(1) Click on “ New permissions ” Button
(2) Enter the permission code and name , Select permission type , Save it
Four 、 Users assign roles
Operation instructions :
1、 Get into “ Users assign roles ” menu
2、 After selecting the user name , Will be displayed “ Selected roles ” and “ Unselected characters ”
3、 Select a new role to assign to the user from the left , Or select the assigned role from the right to disassociate , Take effect after preservation
5、 ... and 、 Role Association permission
Operation instructions :
1、 Get into “ Role Association permission ” menu
2、 After choosing the character , Will be displayed “ Selected permissions ” and “ Unselected permissions ”
3、 Select the new permission associated role from the left , Or select the associated permission from the right to disassociate , Take effect after preservation
Postscript
If you are interested in the open source software we are working on , All forms of cooperation are welcome , Join us to create an open source information solution .
【 Code cloud 】 or 【GitHub】 Search for “ Red Dragon ERP” Click on the star , And join us ! Let's do something great from childhood ! Communicate with developers kzca2000