0
我已经在我的骨架应用程序中安装了这两个模块。两者都使用他们在此给出的配置示例https://github.com/bjyoungblood/BjyAuthorize。配置BjyAuthorize和ZfcUser以管理员身份和普通用户身份工作
我也安装了ZfcAdmin并添加了一些功能。我需要阻止它不低于管理角色。已在DB客人,用户管理员创建的角色
我已创建的用户具有管理员角色,这里是
'BjyAuthorize\Guard\Controller' => array(
array('controller' => 'index', 'action' => 'index', 'roles' => array('guest','user')),
array('controller' => 'index', 'action' => 'stuff', 'roles' => array('user')),
array('controller' => 'zfcuser', 'roles' => array()),
// Below is the default index action used by the [ZendSkeletonApplication](https://github.com/zendframework/ZendSkeletonApplication)
array('controller' => 'Application\Controller\Index', 'roles' => array('guest', 'user')),
array('controller' => 'ZfcAdmin\Controller\Admin', 'roles' => array('admin')),
),
我已经添加了控制器的ZfcAdmin \控制器\联系BjyAuthorize模块的我的配置文件的一部分'与角色管理员,但它仍然阻止管理部分。
任何帮助或指导,非常感谢。