Remove ForceDelete from statuses blocking confirmation

This commit is contained in:
Alex Sherman 2020-11-02 16:05:04 +05:00
parent 083be0d536
commit 269c5c284f
2 changed files with 13 additions and 1 deletions

View file

@ -384,7 +384,7 @@ class Domain < ApplicationRecord
end
def registrant_update_confirmable?(token)
return false if (statuses & [DomainStatus::FORCE_DELETE, DomainStatus::DELETE_CANDIDATE]).any?
return false if statuses.include? DomainStatus::DELETE_CANDIDATE
return false unless pending_update?
return false unless registrant_verification_asked?
return false unless registrant_verification_token == token