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

thinkphp中RBAC的有关问题

WBOY
Release: 2016-06-13 13:27:58
Original
954 people have browsed it

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


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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template