一切都是按照教程来安装的,但是权限就是判断不了,
我加了一个operation ,名字是UserEdit ,也将此operation分配给了指定的user
但是访问/study/index.php?r=user/edit 总是得到 403 error,
各位指教一下吧
一切都是按照教程来安装的,但是权限就是判断不了,
我加了一个operation ,名字是UserEdit ,也将此operation分配给了指定的user
但是访问/study/index.php?r=user/edit 总是得到 403 error,
各位指教一下吧
403 Error好像就是没有权限。
我觉得和bizrule有关,不知道你是怎么写的。
例子中的
$auth->createOperation('createPost','create a post');
$auth->createOperation('readPost','read a post');
$auth->createOperation('updatePost','update a post');
$auth->createOperation('deletePost','delete a post');
这些应该有对应的action,比如createPost应该对应有个actioncreatePost,不然没有bizrule怎么判断到底对应哪个操作,这些都是自己猜测的,没验证,希望别误导了大家。
最近才开始研究,没搞明白呢,哪天我搞明白了再来回复。
应该是 User.Edit