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 def attestation
if dossier.attestation.pdf.attached? if dossier.attestation.pdf.attached?
redirect_to dossier.attestation.pdf.url redirect_to dossier.attestation.pdf.url, allow_other_host: true
end end
end end

View file

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