mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 02:35:57 +02:00
Introduce request op to domain transfer #2746
This commit is contained in:
parent
6daf082129
commit
c4da9c86a6
5 changed files with 121 additions and 10 deletions
|
@ -461,6 +461,8 @@ class Epp::Domain < Domain
|
|||
def transfer(frame, action, current_user)
|
||||
case action
|
||||
when 'query'
|
||||
return domain_transfers.last if domain_transfers.any?
|
||||
when 'request'
|
||||
return pending_transfer if pending_transfer
|
||||
return query_transfer(frame, current_user)
|
||||
when 'approve'
|
||||
|
@ -468,7 +470,7 @@ class Epp::Domain < Domain
|
|||
when 'reject'
|
||||
return reject_transfer(frame, current_user) if pending_transfer
|
||||
end
|
||||
add_epp_error('2303', nil, nil, I18n.t('pending_transfer_was_not_found'))
|
||||
add_epp_error('2303', nil, nil, I18n.t('no_transfers_found'))
|
||||
end
|
||||
|
||||
# TODO: Eager load problems here. Investigate how it's possible not to query contact again
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue