What should I do with the RBAC permission management module of ThinkPHP?
Source: Internet
Author: User
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, you can break down data access permissions into function access permissions, in this way, you can directly apply the original code and the RBAC permission management module of 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.
------ 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
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.