Changed not to send email notification for empty invite request

This commit is contained in:
noellabo 2020-04-12 23:27:47 +09:00
parent ae83c9691f
commit 1503574e48

View file

@ -163,7 +163,7 @@ class User < ApplicationRecord
if new_user && approved?
prepare_new_user!
elsif new_user
notify_staff_about_pending_account!
notify_staff_about_pending_account! if invite_request&.text.present?
end
end