Merge pull request #2586 from rahul2240/bug1

add condition for booth rejection mail
This commit is contained in:
Stella Rouzi 2020-01-07 00:34:38 +02:00 committed by GitHub
commit e38cfc55c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,9 @@ module Admin
@booth.reject!
if @booth.save
Mailbot.conference_booths_rejection_mail(@booth).deliver_later
if @conference.email_settings.send_on_booths_rejection
Mailbot.conference_booths_rejection_mail(@booth).deliver_later
end
redirect_to admin_conference_booths_path(conference_id: @conference.short_title),
notice: "#{(t'booth').capitalize} successfully rejected."
else