2018-06-01 17:04:09 +02:00
|
|
|
module ConservationDeDonneesHelper
|
|
|
|
def politiques_conservation_de_donnees(procedure)
|
2021-11-11 10:58:13 +01:00
|
|
|
[conservation_dans_ds(procedure)].compact
|
2018-06-01 17:04:09 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def conservation_dans_ds(procedure)
|
|
|
|
if procedure.duree_conservation_dossiers_dans_ds.present?
|
2022-04-25 17:38:30 +02:00
|
|
|
I18n.t('users.procedure_footer.legals.data_retention',
|
2024-03-20 11:34:54 +01:00
|
|
|
application_name: Current.application_name,
|
2022-04-25 17:38:30 +02:00
|
|
|
duree_conservation_dossiers_dans_ds: procedure.duree_conservation_dossiers_dans_ds)
|
2018-06-01 17:04:09 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|