zfc-rbac

Use spiffy navigation with zfcrbac module

99封情书 提交于 2019-12-21 21:10:40
问题 I'm trying to understand how spiffy-navigation works. I integrate the module, it's working very well. I have my navigation. But the doc says : Rbac specific options role: required The role to use to determine if access is granted. permission: required The permission to use to determine if access is granted. But, even if i did something like that, it still not working. 'containers' => array( 'default' => array( array( 'options' => array( 'label' => 'profil', 'route' => 'profil', 'role' =>

ZF2 Generate navigation using zfcrbac zfcUser and hierarchical role strategy

谁都会走 提交于 2019-12-07 18:52:22
问题 I begin in zf2 and i have to handle Many to Many permissions/roles. Using ZfcRbac. So i make a mapping with User / Hierarchical Role (table name= role) / permissions And i make some guards with deny policy. My guard, mapping, database, are ok. My HierarchicalRole Entity looks like : class HierarchicalRole implements HierarchicalRoleInterface And it's, for now the same as the original given by Bakura. My user Entity looks like this : class User extends ZfcUserEntity implements

ZF2 Generate navigation using zfcrbac zfcUser and hierarchical role strategy

烈酒焚心 提交于 2019-12-06 04:30:12
I begin in zf2 and i have to handle Many to Many permissions/roles. Using ZfcRbac . So i make a mapping with User / Hierarchical Role (table name= role) / permissions And i make some guards with deny policy. My guard, mapping, database, are ok. My HierarchicalRole Entity looks like : class HierarchicalRole implements HierarchicalRoleInterface And it's, for now the same as the original given by Bakura. My user Entity looks like this : class User extends ZfcUserEntity implements IdentityInterface with /** * @var \Doctrine\Common\Collections\Collection * @ORM\ManyToMany(targetEntity=