CakePHP CakeDC用户插件permision不工作
问题描述:
我有一个问题,“cakeDC用户”插件不能与bypassAuth一起工作,我会得到一个应该如何实现的例子。CakePHP CakeDC用户插件permision不工作
我的代码:
return [
'CakeDC/Auth.permissions' => [
[
'controller' => 'test',
'action' => ['index'],
'bypassAuth' => 'true',
],....
在此先感谢。
答
您需要设置'bypassAuth' => true
,因为期望的类型是boolean | null,而不是字符串。