prend en compte uniquement les pj pour estimer la taille d'un dossier

This commit is contained in:
Christophe Robillard 2021-05-04 10:31:13 +02:00
parent 71a48c99bb
commit 01f180022b
7 changed files with 60 additions and 37 deletions

View file

@ -211,7 +211,7 @@ module Instructeurs
end
def telecharger_pjs
return head(:forbidden) if !dossier.attachments_downloadable?
return head(:forbidden) if !dossier.export_and_attachments_downloadable?
files = ActiveStorage::DownloadableFile.create_list_from_dossier(dossier)