-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用自己的验证模型一直无法通过验证 #1
Labels
question
Further information is requested
Comments
还有问题吗 |
有,现在的问题就是Policy最后一个字段的末尾会多出一个,号,使用enforce时也要加上一个,号才能判断正确,但是在数据库中是没有这个,号的。 |
完整的rules表截个图 |
没看到 v4=GET的呢 |
我是出了上面那个问题后,觉得可能是通配符问题才改成GET试试的,一样会有,的问题。 $haspermission = Enforcer::getFilteredPolicy(0, 'backend', '2', '3');
var_dump($haspermission);
|
更新到最新开发版:
|
好的,刚发现是composer镜像没有同步,前几天更新过也没发现。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用自己的验证模型,一直无法通过验证,但是数据库中记录是存在的。
![image](https://user-images.githubusercontent.com/5617150/63738074-2d8a7900-c8bb-11e9-8da2-3a8729b7cca6.png)
使用
也能打印出内容。
代码中执行:
手动添加一条规则再执行enforce,则能够返回true,但下一次请求又会变成false。
模型conf文件:
The text was updated successfully, but these errors were encountered: