mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Refactor #2809
This commit is contained in:
parent
6a3344eeaf
commit
4c981e736a
1 changed files with 1 additions and 5 deletions
|
@ -586,7 +586,7 @@ class Epp::Domain < Domain
|
|||
}
|
||||
end
|
||||
|
||||
unless can_be_transferred_to?(current_user.registrar)
|
||||
if current_user.registrar == registrar
|
||||
throw :epp_error, {
|
||||
code: '2002',
|
||||
msg: I18n.t(:domain_already_belongs_to_the_querying_registrar)
|
||||
|
@ -744,10 +744,6 @@ class Epp::Domain < Domain
|
|||
true
|
||||
end
|
||||
|
||||
def can_be_transferred_to?(new_registrar)
|
||||
new_registrar != registrar
|
||||
end
|
||||
|
||||
def transferrable?
|
||||
(statuses & [
|
||||
DomainStatus::PENDING_CREATE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue