fix: [authKeycloakBehavior] Typo preventing roles to be saved
parent
8d26be28a2
commit
efe917c824
|
@ -444,7 +444,7 @@ class AuthKeycloakBehavior extends Behavior
|
||||||
$toRemove = array_diff($keycloakUserRoles, array_keys($userRoles));
|
$toRemove = array_diff($keycloakUserRoles, array_keys($userRoles));
|
||||||
$changed = false;
|
$changed = false;
|
||||||
foreach ($toRemove as $k => $role) {
|
foreach ($toRemove as $k => $role) {
|
||||||
if (substr($role, 0, strlen('Organisation:')) !== 'Organisation:' && substr($role, 0, strlen('Role:') !== 'Role:')) {
|
if (substr($role, 0, strlen('Organisation:')) !== 'Organisation:' && substr($role, 0, strlen('Role:')) !== 'Role:') {
|
||||||
unset($toRemove[$k]);
|
unset($toRemove[$k]);
|
||||||
} else {
|
} else {
|
||||||
$toRemove[$k] = $assignedRolesParsed[$role];
|
$toRemove[$k] = $assignedRolesParsed[$role];
|
||||||
|
|
Loading…
Reference in New Issue