mirror of
https://github.com/internetee/registry.git
synced 2025-07-13 14:35:05 +02:00
Make request validation shorter on domain create
This commit is contained in:
parent
cad6d68bfa
commit
ebfa997124
4 changed files with 22 additions and 27 deletions
|
@ -142,7 +142,7 @@ class Epp::DomainsController < EppController
|
|||
end
|
||||
|
||||
def validate_update
|
||||
if params[:parsed_frame].css('chg registrant').present? && params[:parsed_frame].css('legalDocument').blank?
|
||||
if element_count('update > chg > registrant') > 0
|
||||
requires('extension > extdata > legalDocument')
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue