fix issue #15377
This commit is contained in:
parent
c37387dc02
commit
5179acc29b
@ -71,7 +71,7 @@ class SecurityDataCollector extends DataCollector
|
|||||||
if (null !== $this->roleHierarchy) {
|
if (null !== $this->roleHierarchy) {
|
||||||
$allRoles = $this->roleHierarchy->getReachableRoles($assignedRoles);
|
$allRoles = $this->roleHierarchy->getReachableRoles($assignedRoles);
|
||||||
foreach ($allRoles as $role) {
|
foreach ($allRoles as $role) {
|
||||||
if (!in_array($role, $assignedRoles)) {
|
if (!in_array($role, $assignedRoles, true)) {
|
||||||
$inheritedRoles[] = $role;
|
$inheritedRoles[] = $role;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user