How to write a background management permission

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.