The RBAC of ThinkPHP's rbac permission management module, think, can only provide permissions for specific functions & nbsp; what methods can be improved? it not only supports access to functions & nbsp; you can also provide data access permissions. For more information, see The RBAC permission management module of phpthinkphp ThinkPHP.
Think rbac can only provide methods to grant function-specific permissions. it can be improved to support not only function-specific access permissions, but also data-specific access permissions.
Php thinkphp
Share:
------ Solution --------------------
You can break down the data access permissions to the function access permissions, so that you can directly apply the original code
You can also directly modify his code, but it depends on your understanding of RBAC.
------ Solution --------------------
If you control the function, do you not control the data?
Model control data-> controller control model-> control function