Commit 502ad413 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

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

parent d1611cc5
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment