mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 23:54:44 +02:00
Remove Bullet-related code
This commit is contained in:
parent
558261c047
commit
c9fbc9269e
2 changed files with 3 additions and 10 deletions
|
@ -115,8 +115,6 @@ module Epp
|
|||
|
||||
def delete
|
||||
authorize! :delete, @domain, @password
|
||||
# all includes for bullet
|
||||
@domain = Epp::Domain.where(id: @domain.id).includes(nameservers: :versions).first
|
||||
|
||||
handle_errors(@domain) and return unless @domain.can_be_deleted?
|
||||
|
||||
|
|
|
@ -23,12 +23,8 @@ class Epp::Domain < Domain
|
|||
active_admins = admin_domain_contacts.select { |x| !x.marked_for_destruction? }
|
||||
active_techs = tech_domain_contacts.select { |x| !x.marked_for_destruction? }
|
||||
|
||||
# bullet workaround
|
||||
ac = active_admins.map { |x| Contact.find(x.contact_id) }
|
||||
tc = active_techs.map { |x| Contact.find(x.contact_id) }
|
||||
|
||||
# validate registrant here as well
|
||||
([registrant] + ac + tc).each do |x|
|
||||
([registrant] + active_admins + active_techs).each do |x|
|
||||
unless x.valid?
|
||||
add_epp_error('2304', nil, nil, I18n.t(:contact_is_not_valid, value: x.code))
|
||||
ok = false
|
||||
|
@ -123,9 +119,8 @@ class Epp::Domain < Domain
|
|||
|
||||
def attach_default_contacts
|
||||
return if registrant.blank?
|
||||
regt = Registrant.find(registrant.id) # temp for bullet
|
||||
tech_contacts << regt if tech_domain_contacts.blank?
|
||||
admin_contacts << regt if admin_domain_contacts.blank? && !regt.org?
|
||||
tech_contacts << registrant if tech_domain_contacts.blank?
|
||||
admin_contacts << registrant if admin_domain_contacts.blank? && !registrant.org?
|
||||
end
|
||||
|
||||
def attrs_from(frame, current_user, action = nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue