bug #15389 [securityBundle] Compare roles strictly when computing inherited roles (bokonet)
This PR was merged into the 2.7 branch.
Discussion
----------
[securityBundle] Compare roles strictly when computing inherited roles
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #15377
| License | MIT
| Doc PR |
Commits
-------
5179acc
fix issue #15377
This commit is contained in:
commit
4c649dcb26
@ -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