Merge pull request #2240 from betagouv/revert-download-attribute

Revert "Temporary fix to allow users to download files with extensions"
This commit is contained in:
Mathieu Magnin 2018-07-11 15:59:55 +02:00 committed by GitHub
commit 6e3109fa7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,7 @@
- pj = champ.piece_justificative_file
- if champ.virus_scan.present?
- if champ.virus_scan.safe?
#FIXME : use url_for(pj) and remove download attribute when Riak content_disposition bug is solved https://github.com/betagouv/tps/issues/2180
= link_to pj.filename.to_s, pj.service_url(expires_in: 1.hour), target: '_blank', download: pj.filename.to_s
= link_to pj.filename.to_s, url_for(pj), target: '_blank'
- else
= pj.filename.to_s
- if champ.virus_scan.pending?