From ac47f824515706daec306786472009ff9919ad78 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Mon, 30 Oct 2023 18:35:31 +0100 Subject: [PATCH] fix(profile): commencer is not always "as guest" --- app/controllers/users/commencer_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/users/commencer_controller.rb b/app/controllers/users/commencer_controller.rb index e64d17e81..18fd43cdb 100644 --- a/app/controllers/users/commencer_controller.rb +++ b/app/controllers/users/commencer_controller.rb @@ -76,6 +76,10 @@ module Users retrieve_procedure end + def nav_bar_profile + current_user ? :user : :guest + end + private def extra_query_params