mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 21:16:12 +02:00
Created user admin scope
This commit is contained in:
parent
807c537f67
commit
0ad2fd5a1b
2 changed files with 3 additions and 1 deletions
|
@ -58,7 +58,7 @@ module Repp
|
|||
end
|
||||
|
||||
def notify_admins
|
||||
admin_users_emails = User.all.select { |u| u.roles.include? 'admin' }.pluck(:email)
|
||||
admin_users_emails = User.admin.pluck(:email)
|
||||
|
||||
return if admin_users_emails.empty?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue