mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Refactor #2588
This commit is contained in:
parent
ea5a2e54fb
commit
812381056c
1 changed files with 4 additions and 2 deletions
|
@ -588,8 +588,10 @@ class Epp::Domain < Domain
|
||||||
def approve_transfer(frame, current_user)
|
def approve_transfer(frame, current_user)
|
||||||
pt = pending_transfer
|
pt = pending_transfer
|
||||||
if current_user.registrar != pt.transfer_from
|
if current_user.registrar != pt.transfer_from
|
||||||
add_epp_error('2304', nil, nil, I18n.t('transfer_can_be_approved_only_by_current_registrar'))
|
throw :epp_error, {
|
||||||
return false
|
msg: I18n.t('transfer_can_be_approved_only_by_current_registrar'),
|
||||||
|
code: '2304'
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
transaction do
|
transaction do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue