Skip to content

Commit

Permalink
Update EditableRolesBuilder::getRoles()
Browse files Browse the repository at this point in the history
Delete children security roles.
  • Loading branch information
nilov authored Feb 28, 2020
1 parent 67fb284 commit e635ade
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Security/EditableRolesBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,8 @@ public function getRoles()
$securityRoles = [];
foreach ($this->rolesHierarchy as $name => $rolesHierarchy) {
$securityRoles[$name] = $name;
foreach ($rolesHierarchy as $action) {
if (!isset($securityRoles[$action])) {
$securityRoles[$action] = $action;
}
}
}

return [$entityRoles, $securityRoles];
}
}
}

0 comments on commit e635ade

Please sign in to comment.