Loading src/UnicaenAuth/Service/UserContext.php +8 −5 Original line number Diff line number Diff line Loading @@ -335,12 +335,15 @@ class UserContext extends AbstractService implements EventManagerAwareInterface unset($this->getSessionContainer()->selectedIdentityRole); } $role = $this->getSelectableIdentityRoles()[$role]; $selectableIdentityRoles = $this->getSelectableIdentityRoles(); if (isset($selectableIdentityRoles[$role])){ $role = $selectableIdentityRoles[$role]; if ($role instanceof AbstractRole) { $this->saveUserLastRole($role); } $this->triggerUserRoleSelectedEvent(UserRoleSelectedEvent::POST_SELECTION, $role); } return $this; } Loading Loading
src/UnicaenAuth/Service/UserContext.php +8 −5 Original line number Diff line number Diff line Loading @@ -335,12 +335,15 @@ class UserContext extends AbstractService implements EventManagerAwareInterface unset($this->getSessionContainer()->selectedIdentityRole); } $role = $this->getSelectableIdentityRoles()[$role]; $selectableIdentityRoles = $this->getSelectableIdentityRoles(); if (isset($selectableIdentityRoles[$role])){ $role = $selectableIdentityRoles[$role]; if ($role instanceof AbstractRole) { $this->saveUserLastRole($role); } $this->triggerUserRoleSelectedEvent(UserRoleSelectedEvent::POST_SELECTION, $role); } return $this; } Loading