Merge branch '107058100-legaldoc' into staging

This commit is contained in:
Stas 2015-11-06 14:03:35 +02:00
commit ab25bdb36d

View file

@ -56,6 +56,10 @@ class Epp::DomainsController < EppController
authorize! :update, @domain, @password
begin
if @domain.update(params[:parsed_frame], current_user)
@domain.attach_legal_document(Epp::Domain.parse_legal_document_from_frame(params[:parsed_frame]))
@domain.save(validate: false)
if @domain.epp_pending_update.present?
render_epp_response '/epp/domains/success_pending'
else