mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
Fail earlier if domain is non-transferable
Regardless of EPP transfer operation #694
This commit is contained in:
parent
126428f38f
commit
4ada9d1bd0
5 changed files with 44 additions and 8 deletions
|
@ -644,13 +644,6 @@ class Epp::Domain < Domain
|
|||
# rubocop: disable Metrics/MethodLength
|
||||
# rubocop: disable Metrics/AbcSize
|
||||
def query_transfer(frame, current_user)
|
||||
unless transferrable?
|
||||
throw :epp_error, {
|
||||
code: '2304',
|
||||
msg: I18n.t(:object_status_prohibits_operation)
|
||||
}
|
||||
end
|
||||
|
||||
if current_user.registrar == registrar
|
||||
throw :epp_error, {
|
||||
code: '2002',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue