diff --git a/app/views/shared/dossiers/_identite_entreprise.html.haml b/app/views/shared/dossiers/_identite_entreprise.html.haml index fe840a4e1..f9a3e8ed2 100644 --- a/app/views/shared/dossiers/_identite_entreprise.html.haml +++ b/app/views/shared/dossiers/_identite_entreprise.html.haml @@ -67,15 +67,16 @@ - elsif etablissement.exercices.present? = t('activemodel.models.exercices_summary', count: etablissement.exercices.count) - - if etablissement.entreprise_attestation_sociale.attached? - %tr - %th.libelle Attestation sociale - %td= link_to "Consulter l'attestation", url_for(etablissement.entreprise_attestation_sociale) + - if profile == 'instructeur' + - if etablissement.entreprise_attestation_sociale.attached? + %tr + %th.libelle Attestation sociale + %td= link_to "Consulter l'attestation", url_for(etablissement.entreprise_attestation_sociale) - - if etablissement.entreprise_attestation_fiscale.attached? - %tr - %th.libelle Attestation fiscale - %td= link_to "Consulter l'attestation", url_for(etablissement.entreprise_attestation_fiscale) + - if etablissement.entreprise_attestation_fiscale.attached? + %tr + %th.libelle Attestation fiscale + %td= link_to "Consulter l'attestation", url_for(etablissement.entreprise_attestation_fiscale) - if etablissement.association? %tr