From e635ade13cab5f0a541f9851b48b679992e1416b Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 28 Feb 2020 16:07:20 +0700 Subject: [PATCH] Update EditableRolesBuilder::getRoles() Delete children security roles. --- Security/EditableRolesBuilder.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 +}