mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 06:26:15 +02:00
Reject blank admin user emails
This commit is contained in:
parent
0ad2fd5a1b
commit
de9921d667
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ module Repp
|
||||||
end
|
end
|
||||||
|
|
||||||
def notify_admins
|
def notify_admins
|
||||||
admin_users_emails = User.admin.pluck(:email)
|
admin_users_emails = User.admin.pluck(:email).reject(&:blank?)
|
||||||
|
|
||||||
return if admin_users_emails.empty?
|
return if admin_users_emails.empty?
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue