Skip to content
Snippets Groups Projects
Unverified Commit de1e75fb authored by farhatahmad's avatar farhatahmad Committed by GitHub
Browse files

Added check to emailer concern (#550)

parent 190fc57f
No related branches found
No related tags found
No related merge requests found
......@@ -36,10 +36,14 @@ module Emailer
end
def send_user_promoted_email(user)
return unless Rails.configuration.enable_email_verification
UserMailer.user_promoted(user, root_url, logo_image, user_color).deliver_now
end
def send_user_demoted_email(user)
return unless Rails.configuration.enable_email_verification
UserMailer.user_demoted(user, root_url, logo_image, user_color).deliver_now
end
......@@ -58,10 +62,14 @@ module Emailer
end
def send_approval_user_signup_email(user)
return unless Rails.configuration.enable_email_verification
UserMailer.approval_user_signup(user, admins_url, logo_image, user_color, admin_emails).deliver_now
end
def send_invite_user_signup_email(user)
return unless Rails.configuration.enable_email_verification
UserMailer.invite_user_signup(user, admins_url, logo_image, user_color, admin_emails).deliver_now
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment