This commit is contained in:
Martin Lensment 2015-07-14 12:04:08 +03:00
parent b18960c32a
commit bfe9086ec0
3 changed files with 5 additions and 3 deletions

View file

@ -24,7 +24,8 @@ class Epp::DomainsController < EppController
authorize! :create, Epp::Domain
@domain = Epp::Domain.new_from_epp(params[:parsed_frame], current_user)
handle_errors(@domain) and return if @domain.errors.any?
handle_errors(@domain) and return if @domain.valid? && @domain.errors.any?
@domain.valid?
handle_errors(@domain) and return if @domain.errors.any?
handle_errors and return unless balance_ok?('create')