diff --git a/app/models/domain.rb b/app/models/domain.rb index 819d8e34c..f5fed455d 100644 --- a/app/models/domain.rb +++ b/app/models/domain.rb @@ -202,7 +202,7 @@ class Domain < ApplicationRecord companies = Contact.registrant_user_company_contacts(registrant_user) from( "(#{registrant_user_administered_domains(registrant_user).to_sql} UNION " \ - "#{registrant_user_company_registrant(registrant_user).to_sql} UNION " \ + "#{registrant_user_company_registrant(companies).to_sql} UNION " \ "#{registrant_user_domains_company(companies, except_tech: true).to_sql}) AS domains" ) end