mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Added pending delete
This commit is contained in:
parent
50d36cb654
commit
6f59824cd1
13 changed files with 184 additions and 27 deletions
|
@ -4,7 +4,7 @@ class Epp::Domain < Domain
|
|||
|
||||
before_validation :manage_permissions
|
||||
def manage_permissions
|
||||
return unless pending_update?
|
||||
return unless pending_update? || pending_delete?
|
||||
add_epp_error('2304', nil, nil, I18n.t(:object_status_prohibits_operation))
|
||||
false
|
||||
end
|
||||
|
@ -410,6 +410,16 @@ class Epp::Domain < Domain
|
|||
)
|
||||
end
|
||||
|
||||
def epp_destroy(frame)
|
||||
if frame.css('delete').attr('verified').to_s.downcase != 'yes'
|
||||
registrant_verification_asked!
|
||||
pending_delete!
|
||||
true # aka 1001 pending_delete
|
||||
else
|
||||
destroy
|
||||
end
|
||||
end
|
||||
|
||||
### RENEW ###
|
||||
|
||||
def renew(cur_exp_date, period, unit = 'y')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue