The easiest rights management model and standard rights Management module and complex permission system _ Rights Management

Source: Internet
Author: User
Tags php framework
1, the most simple Rights Management model (Javaweb)
Suitable for: Not many users, system features are not particularly complex
To add a role field to a user table, and use a field to distinguish which type of role the user belongs to

Benefits: Easy to use, little coding
Disadvantages: Management granularity is coarse, maintenance inconvenient, not flexible enough---not reusable

============ role and resource path relationship, fixed in program, via config file xml/txt

2. Standard Rights Management Module
function table, Permission table, role table, user table

Benefits: The system menu can be dynamically customized, easy to maintain, control granular----REUSABLE
Disadvantages: Developing complex

3. Complex permission System
Oracle Rights control: System permissions, object permissions

CREATE table----belong to system permissions
Select Table user, delete table customer------belong to object permissions

Reference PHP Framework Cake permission Model
User Add/view/list/delete
New Add/view/list/delete

Table structure
User Numbering module function point
1 News Add---------number 1th users can add a press

4 User List--------number 4th users can query all users





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.