How do I write a background management permission? I have never done it before. please have some ideas. thank you. ------ Solution -------------------- add a segment in the member table to the int (1) level administrator to set the level 1 level. by default, all others are level 3 background logon and the user must have level 1 permissions, otherwise, you want to raise the level for the user if the user fails. for example, if you want to raise level 3 to Level 2 in the backend, you can change the level 3 to a higher level than the normal user, but how do I write a backend management permission for a level-1 user that is required for level-2 transfer?
I have never done it before. please have some ideas. thank you.
------ Solution --------------------
Add int (1) level to the member table
Level 1 for administrators and level 3 for others by default
The user must have Level 1 permission for background logon; otherwise, the logon fails.
To improve the user's level, for example, to upgrade Level 3 to Level 2 at the backend,
A level-1 user who has more permissions than a common user can also be transferred back to level-3, but must
And the highest level 2 is the best strategy. that's all.
------ Solution --------------------
Background permissions:
1: User (personnel)
2: Operation type (add, delete, modify)
3: Operation page (whether the page can be viewed)
Operations on a page
This is simply the case.
------ Solution --------------------
The landlord looks at the suggestions above and designs the database on his own.
------ Solution --------------------
First, you need to determine the specific step of your permissions, and then consider how to create a database
------ Solution --------------------
Discussion
My background users are separate tables.
------ Solution --------------------
It's easy. The price parameter is OK...