always allow dossier pjs download (-9 queries)

This commit is contained in:
simon lehericey 2022-04-04 11:12:07 +02:00
parent c21eac0513
commit 57f9e5bac3
7 changed files with 2 additions and 49 deletions

View file

@ -218,8 +218,6 @@ module Instructeurs
end
def telecharger_pjs
return head(:forbidden) if !dossier.export_and_attachments_downloadable?
files = ActiveStorage::DownloadableFile.create_list_from_dossier(dossier)
zipline(files, "dossier-#{dossier.id}.zip")