mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
REPP: Add contact:destroy action
This commit is contained in:
parent
516b2180ca
commit
f9bef781ab
5 changed files with 104 additions and 30 deletions
|
@ -44,12 +44,13 @@ module Epp
|
|||
|
||||
def delete
|
||||
authorize! :delete, @contact, @password
|
||||
|
||||
if @contact.destroy_and_clean(params[:parsed_frame])
|
||||
render_epp_response '/epp/contacts/delete'
|
||||
else
|
||||
action = Actions::ContactDelete.new(@contact, params[:legal_document])
|
||||
unless action.call
|
||||
handle_errors(@contact)
|
||||
return
|
||||
end
|
||||
|
||||
render_epp_response '/epp/contacts/delete'
|
||||
end
|
||||
|
||||
def renew
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue