fix(attestation): allow redirection to our static domain for attestation
This commit is contained in:
parent
f4ccc5c717
commit
93c08072ba
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue