diff --git a/app/views/layouts/_header.haml b/app/views/layouts/_header.haml index 6b1e1ab47..896f0030f 100644 --- a/app/views/layouts/_header.haml +++ b/app/views/layouts/_header.haml @@ -6,7 +6,7 @@ - is_administrateur_context = nav_bar_profile == :administrateur && administrateur_signed_in? - is_expert_context = nav_bar_profile == :expert && expert_signed_in? - is_user_context = nav_bar_profile == :user -- is_search_enabled = [params[:controller] == 'recherche', is_instructeur_context, is_expert_context, is_user_context && current_user.dossiers.count].any? +- is_search_enabled = [params[:controller] == 'recherche', is_instructeur_context, is_expert_context].any? %header{ class: ["fr-header", content_for?(:notice_info) && "fr-header__with-notice-info"], role: "banner", "data-controller": "dsfr-header" } %nav{ :role => "navigation", "aria-label" => t('layouts.header.main_menu') } .fr-header__body