mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
add if condition to send booth rejection mail
This commit is contained in:
parent
86440cb956
commit
c1941ff35e
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue