Story #104525314 - clean up, remove dev hacks, allow dev to verify end user experience

This commit is contained in:
Matt Farnsworth 2015-11-06 11:16:00 +02:00
parent 3d7f8e2866
commit ea230e70ca

View file

@ -448,7 +448,6 @@ class Domain < ActiveRecord::Base
# rubocop: disable Metrics/CyclomaticComplexity # rubocop: disable Metrics/CyclomaticComplexity
def registrant_update_confirmable?(token) def registrant_update_confirmable?(token)
return true if Rails.env.development?
return false if (statuses & [DomainStatus::FORCE_DELETE, DomainStatus::DELETE_CANDIDATE]).any? return false if (statuses & [DomainStatus::FORCE_DELETE, DomainStatus::DELETE_CANDIDATE]).any?
return false unless pending_update? return false unless pending_update?
return false if registrant_verification_token.blank? return false if registrant_verification_token.blank?
@ -459,7 +458,6 @@ class Domain < ActiveRecord::Base
end end
def registrant_delete_confirmable?(token) def registrant_delete_confirmable?(token)
return true if Rails.env.development?
return false unless pending_delete? return false unless pending_delete?
return false if registrant_verification_token.blank? return false if registrant_verification_token.blank?
return false if registrant_verification_asked_at.blank? return false if registrant_verification_asked_at.blank?