uses the thinkphp framework for authority authentication based on auth.
currently there are four tables in mysql:
1, user (user table)
2, auth_group (user group table, such as administrator group, employee group)
3, auth_group_access (previous association table between user and user group)
3, auth_rule (rule table, controlled based on "/ module / controller / action")
requirements: users can assign permissions according to the structure and position of the enterprise
for example: CRM customer management
1, salespeople can access customer information under their own names
2, sales managers can access all customer information under their employees
what is the idea of implementation?