fix(invite_mailer.invite_guest): bypass_unverified_mail_protection! for guests otherwise they will never receive the email

Co-Authored-By: Colin Darie <colin@darie.eu>
This commit is contained in:
mfo 2024-06-24 10:54:55 +02:00 committed by Colin Darie
parent 5d0d6e1bbc
commit 0e3ab79b28
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

@ -3,6 +3,8 @@ class InviteMailer < ApplicationMailer
layout 'mailers/layout'
def invite_user(invite)
bypass_unverified_mail_protection!
subject = "Participez à l'élaboration dun dossier"
targeted_user_link = invite.targeted_user_link || invite.create_targeted_user_link(target_context: 'invite',
target_model: invite,
@ -14,6 +16,8 @@ class InviteMailer < ApplicationMailer
end
def invite_guest(invite)
bypass_unverified_mail_protection!
subject = "#{invite.email_sender} vous invite à consulter un dossier"
targeted_user_link = invite.targeted_user_link || invite.create_targeted_user_link(target_context: 'invite',
target_model: invite)