diff --git a/app/views/dossiers/_pieces_justificatives.html.haml b/app/views/dossiers/_pieces_justificatives.html.haml index 14490202b..895543475 100644 --- a/app/views/dossiers/_pieces_justificatives.html.haml +++ b/app/views/dossiers/_pieces_justificatives.html.haml @@ -28,7 +28,7 @@ %a{ href: "#{piece_justificative.content}", target: '_blank' } Consulter - else = 'Pièce non fournie' - - if current_user.loged_in_with_france_connect + - if gestionnaire_signed_in? || (user_signed_in? && current_user.loged_in_with_france_connect) %tr %th.col-lg-6 Attestation fiscale diff --git a/app/views/users/description/show.html.haml b/app/views/users/description/show.html.haml index 005f25348..9ad7ad4fa 100644 --- a/app/views/users/description/show.html.haml +++ b/app/views/users/description/show.html.haml @@ -69,7 +69,7 @@ Modifier = file_field_tag "piece_justificative_#{piece_justificative.type}", accept: '.pdf' - - if current_user.loged_in_with_france_connect + - if (user_signed_in? && current_user.loged_in_with_france_connect) || gestionnaire_signed_in? %tr %th.col-lg-6 Attestation fiscale