From f6744adbdeb63628359471c2a006afa3f49fd499 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Wed, 11 Sep 2024 18:22:25 +0200 Subject: [PATCH] fix: never show 'guest' profile name it's just a hack to tell we don't known the actual profile --- app/views/layouts/_account_dropdown.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/_account_dropdown.haml b/app/views/layouts/_account_dropdown.haml index 39beaf8ce..a9279b58f 100644 --- a/app/views/layouts/_account_dropdown.haml +++ b/app/views/layouts/_account_dropdown.haml @@ -5,8 +5,9 @@ - if dossier.present? && dossier&.france_connected_with_one_identity? %span  via FranceConnect - %span{ class: "fr-badge fr-badge--sm #{color_by_role(nav_bar_profile)}" } - = t("layouts.#{nav_bar_profile}") + - if nav_bar_profile != :guest # don't confuse user with unknown profile + %span{ class: "fr-badge fr-badge--sm #{color_by_role(nav_bar_profile)}" } + = t("layouts.#{nav_bar_profile}") #account.fr-collapse.fr-menu %ul.fr-menu__list.max-content - if multiple_devise_profile_connect?