mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Add check if legal doc mandatory & tests
This commit is contained in:
parent
3f9727dc55
commit
206704fee7
6 changed files with 83 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue