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

@ -26,6 +26,7 @@ class ApiUser < User
validates :username, uniqueness: true
delegate :code, :name, to: :registrar, prefix: true
delegate :legaldoc_mandatory?, to: :registrar
alias_attribute :login, :username