fix(attestation): allow redirection to our static domain for attestation

This commit is contained in:
Colin Darie 2023-05-04 10:31:38 +02:00
parent f4ccc5c717
commit 93c08072ba
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ module Instructeurs
def attestation
if dossier.attestation.pdf.attached?
redirect_to dossier.attestation.pdf.url
redirect_to dossier.attestation.pdf.url, allow_other_host: true
end
end

View file

@ -73,7 +73,7 @@ module Users
def attestation
if dossier.attestation&.pdf&.attached?
redirect_to dossier.attestation.pdf.url
redirect_to dossier.attestation.pdf.url, allow_other_host: true
else
flash.notice = t('.no_longer_available')
redirect_to dossier_path(dossier)