mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Do not use requester ID when querying all_domains() via Registrar
This commit is contained in:
parent
bcd6f0bd71
commit
f27f2f365f
1 changed files with 1 additions and 1 deletions
|
@ -451,7 +451,7 @@ class Contact < ApplicationRecord
|
|||
end
|
||||
|
||||
def qualified_domain_name_list(requester, filter_sql)
|
||||
return Domain.where('domains.id IN (?)', filter_sql) unless requester != id
|
||||
return Domain.where('domains.id IN (?)', filter_sql) if requester.nil?
|
||||
|
||||
requester = Contact.find_by(id: requester)
|
||||
registrant_user = RegistrantUser.find_or_initialize_by(registrant_ident:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue