Skip to content
Snippets Groups Projects
Commit 502ad413 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Aide vue UserCurrent : correction bug si aucun utilisateur connecté).

parent d1611cc5
No related branches found
No related tags found
No related merge requests found
......@@ -42,11 +42,11 @@ class UserCurrent extends UserAbstract
$status = $userStatusHelper(false);
$userProfileSelectable = true;
if ($this->getIdentity()) {
if ($userProfileSelectable) {
$status .= sprintf(", <small>%s</small>", $this->getUserContext()->getSelectedIdentityRole());
}
if ($this->getIdentity()) {
$userProfileHelper = $this->getView()->plugin('userProfile'); /* @var $userProfileHelper \UnicaenAuth\View\Helper\UserProfile */
$userProfileHelper->setUserProfileSelectable($userProfileSelectable);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment