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
|
||||
if dossier.attestation.pdf.attached?
|
||||
redirect_to dossier.attestation.pdf.url
|
||||
redirect_to dossier.attestation.pdf.url, allow_other_host: true
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue