demarches-normaliennes/app/helpers/conservation_de_donnees_helper.rb
Martin be090a1bec feat(administrateur/procedure#create): allow admin to add a lien to the DPO, allow user to consult link to dpo. enhance spec on _procedure_footer.html
Update spec/views/users/_procedure_footer.html.haml_spec.rb

Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>
2022-04-27 15:09:02 +02:00

15 lines
476 B
Ruby

module ConservationDeDonneesHelper
def politiques_conservation_de_donnees(procedure)
[conservation_dans_ds(procedure)].compact
end
private
def conservation_dans_ds(procedure)
if procedure.duree_conservation_dossiers_dans_ds.present?
I18n.t('users.procedure_footer.legals.data_retention',
application_name: APPLICATION_NAME,
duree_conservation_dossiers_dans_ds: procedure.duree_conservation_dossiers_dans_ds)
end
end
end