RBAC problems in thinkphp

Source: Internet
Author: User
RBAC problems in thinkphp the content in the think_role_user table is role_iduser_id & nbsp; 11 & nbsp; 22 & nbsp; access permissions are also granted to each user group, however, the problem occurs when my id is not accessible to users 1 and 2. I did not address the RBAC issue in think _ thinkphp.
RBAC problems in thinkphp
The content in the think_role_user table is
Role_id user_id
1 1
2 2
I have also granted access permissions to each user group, but the problem occurs that users whose id is not 1 or 2 can access the table. I did not add other user IDs to the think_role_user table, what other users can access ???
Thank you!


------ Solution --------------------
1. how to determine a user's role
2. how to associate a user table with a permission table

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.