PHP Framework queryphp Tutorial: Getting Started 11 permission system design
Permission System Design Description:
There are three types of identities in the main composition?
- Super admin?
- Group (department)?
- User?
- Identity (also called role)?
- Permission table
Leader?
???? can list all of their own identities (role)
???? can add team members and set Administrator (Group mode)
???? can add (non-supperadmin) role identities
???? can you set a role identity for your own members to belong to your own group?
Administrator
???? Set leader Add Team Leader Add group Add BRAC permission identity
Set the router class as a protection class, as long as the login protection class is set, then login verification
Set member role identity????
Super admin?
????? Add Delete admins?
Member user?
? ? ? ? Get role status from your own group
? ? ? ? Get your own identity from the membership table role
? ? ? ? In addition to the administrator, the other uses the member +role identity operation before and after the program
Original link: http://tjwzjs.cn/news/knowledge/2012/1211/59.html