diff --git a/app/models/domain.rb b/app/models/domain.rb index f5372e29b..2bab00eab 100644 --- a/app/models/domain.rb +++ b/app/models/domain.rb @@ -121,8 +121,8 @@ class Domain < ApplicationRecord validate :status_is_consistant def status_is_consistant has_error = (hold_status? && statuses.include?(DomainStatus::SERVER_MANUAL_INZONE)) - if !has_error && (statuses & DELETE_STATUSES).any? - has_error = statuses.include? DomainStatus::SERVER_DELETE_PROHIBITED unless locked_by_registrant? + if !has_error && statuses.include?(DomainStatus::PENDING_DELETE) + has_error = statuses.include? DomainStatus::SERVER_DELETE_PROHIBITED end errors.add(:domains, I18n.t(:object_status_prohibits_operation)) if has_error end