mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 02:35:57 +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)
|
||||
pt = pending_transfer
|
||||
if current_user.registrar != pt.transfer_from
|
||||
add_epp_error('2304', nil, nil, I18n.t('transfer_can_be_approved_only_by_current_registrar'))
|
||||
return false
|
||||
throw :epp_error, {
|
||||
msg: I18n.t('transfer_can_be_approved_only_by_current_registrar'),
|
||||
code: '2304'
|
||||
}
|
||||
end
|
||||
|
||||
transaction do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue