Changed not to send email notification for empty invite request
This commit is contained in:
parent
ae83c9691f
commit
1503574e48
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue