diff --git a/Security/EditableRolesBuilder.php b/Security/EditableRolesBuilder.php index 9bee124..9b6ab4a 100644 --- a/Security/EditableRolesBuilder.php +++ b/Security/EditableRolesBuilder.php @@ -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]; } -} \ No newline at end of file +}