Home  >  Article  >  Backend Development  >  thinkphp中RBAC的有关问题

thinkphp中RBAC的有关问题

WBOY
WBOYOriginal
2016-06-13 10:27:20709browse

thinkphp中RBAC的问题
thinkphp中RBAC问题
think_role_user表里的内容是
role_id user_id
  1 1  
  2 2  
每个用户组我也给了访问的权限了,但问题出现了我的id不是1和2的用户也能访问,我没向think_role_user表里添加别的用户ID啊,问什么别的用户还能访问呢???
求解,谢谢! 


------解决方案--------------------
1、怎么判断用户的角色的
2、用户表与权限表怎么关联的

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn