mirror of
https://github.com/internetee/registry.git
synced 2025-07-19 17:25:57 +02:00
Show only priv contacts
This commit is contained in:
parent
e20de5b793
commit
2ed9672eb5
8 changed files with 28 additions and 3 deletions
|
@ -121,5 +121,7 @@ class Registrar::DomainsController < Registrar::DeppController # EPP controller
|
|||
def init_contacts_autocomplete_map
|
||||
@contacts_autocomplete_map ||=
|
||||
current_user.registrar.contacts.pluck(:name, :code).map { |c| ["#{c.second} #{c.first}", c.second] }
|
||||
@priv_contacts_autocomplete_map ||=
|
||||
current_user.registrar.priv_contacts.pluck(:name, :code).map { |c| ["#{c.second} #{c.first}", c.second] }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue