Fixed RoleHierarchy implementation
Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
parent
c76fbd0ad9
commit
bcb199e0de
@ -43,7 +43,7 @@ class RoleHierarchy implements RoleHierarchyInterface
|
|||||||
$roles = $this->roleRepo->findAll();
|
$roles = $this->roleRepo->findAll();
|
||||||
foreach ($roles as $mainRole) {
|
foreach ($roles as $mainRole) {
|
||||||
$main = $mainRole->getRole();
|
$main = $mainRole->getRole();
|
||||||
$this->map[$main] = array();
|
$this->map[$main] = array($main);
|
||||||
foreach ($mainRole->getInheritedRoles() as $childRole) {
|
foreach ($mainRole->getInheritedRoles() as $childRole) {
|
||||||
$this->map[$main][] = $childRole->getRole();
|
$this->map[$main][] = $childRole->getRole();
|
||||||
// TODO: This is one-level only. Get as deep as possible.
|
// TODO: This is one-level only. Get as deep as possible.
|
||||||
|
Loading…
Reference in New Issue
Block a user