diff --git a/src/UnicaenAuth/View/Helper/UserCurrent.php b/src/UnicaenAuth/View/Helper/UserCurrent.php index 6b495ffcd301239561e93b0819ef0ec73d0d6ee7..c04638cff7e5c469b01af8caa6afadf7f0dac204 100644 --- a/src/UnicaenAuth/View/Helper/UserCurrent.php +++ b/src/UnicaenAuth/View/Helper/UserCurrent.php @@ -42,11 +42,11 @@ class UserCurrent extends UserAbstract $status = $userStatusHelper(false); $userProfileSelectable = true; - if ($userProfileSelectable) { - $status .= sprintf(", <small>%s</small>", $this->getUserContext()->getSelectedIdentityRole()); - } - if ($this->getIdentity()) { + if ($userProfileSelectable) { + $status .= sprintf(", <small>%s</small>", $this->getUserContext()->getSelectedIdentityRole()); + } + $userProfileHelper = $this->getView()->plugin('userProfile'); /* @var $userProfileHelper \UnicaenAuth\View\Helper\UserProfile */ $userProfileHelper->setUserProfileSelectable($userProfileSelectable);