Add check if legal doc mandatory & tests

This commit is contained in:
Alex Sherman 2020-06-30 14:33:42 +05:00
parent 3f9727dc55
commit 206704fee7
6 changed files with 83 additions and 2 deletions

View file

@ -237,7 +237,7 @@ module Epp
mutually_exclusive 'keyData', 'dsData'
@prefix = nil
requires 'extension > extdata > legalDocument'
requires 'extension > extdata > legalDocument' if current_user.legaldoc_mandatory?
optional_attribute 'period', 'unit', values: %w(d m y)