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