Skip to content

Commit

Permalink
Merge pull request #18 from tkiehne/master
Browse files Browse the repository at this point in the history
loadMultiple does not index by rid like user_roles did
  • Loading branch information
tkiehne authored Mar 8, 2024
2 parents e61f9b1 + bc336e7 commit 5bbd714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventSubscriber/UwAuthSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ private function syncRoles(AccountInterface $account): void {

// Add to newly assigned roles.
foreach ($mapped_roles as $mapped) {
if (\array_key_exists($mapped, $roles_existing)) {
if (\in_array($mapped, $roles_existing)) {
$account->addRole($mapped);
}
}
Expand Down

0 comments on commit 5bbd714

Please sign in to comment.