This commit is contained in:
Martin Lensment 2015-08-11 12:15:59 +03:00
parent 6a3344eeaf
commit 4c981e736a

View file

@ -586,7 +586,7 @@ class Epp::Domain < Domain
} }
end end
unless can_be_transferred_to?(current_user.registrar) if current_user.registrar == registrar
throw :epp_error, { throw :epp_error, {
code: '2002', code: '2002',
msg: I18n.t(:domain_already_belongs_to_the_querying_registrar) msg: I18n.t(:domain_already_belongs_to_the_querying_registrar)
@ -744,10 +744,6 @@ class Epp::Domain < Domain
true true
end end
def can_be_transferred_to?(new_registrar)
new_registrar != registrar
end
def transferrable? def transferrable?
(statuses & [ (statuses & [
DomainStatus::PENDING_CREATE, DomainStatus::PENDING_CREATE,