always allow dossier pjs download (-9 queries)
This commit is contained in:
parent
c21eac0513
commit
57f9e5bac3
7 changed files with 2 additions and 49 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue