Autoaccept registrant change if valid dispute password present

This commit is contained in:
Karl Erik Õunapuu 2020-05-07 16:40:37 +03:00
parent bd8ffb7e1d
commit 4870dab8af
2 changed files with 2 additions and 2 deletions

View file

@ -185,7 +185,7 @@ class Domain < ApplicationRecord
end
attr_accessor :registrant_typeahead, :update_me,
:epp_pending_update, :epp_pending_delete, :reserved_pw, :disputed_pw
:epp_pending_update, :epp_pending_delete, :reserved_pw
self.ignored_columns = %w[legacy_id legacy_registrar_id legacy_registrant_id]

View file

@ -495,7 +495,7 @@ class Epp::Domain < Domain
Setting.request_confrimation_on_registrant_change_enabled &&
frame.css('registrant').present? &&
frame.css('registrant').attr('verified').to_s.downcase != 'yes'
registrant_verification_asked!(frame.to_s, current_user.id)
registrant_verification_asked!(frame.to_s, current_user.id) unless disputed?
end
errors.empty? && super(at)