fix: made admin status store, related to lock feature

This commit is contained in:
Oleg Hasjanov 2021-04-07 14:46:40 +03:00
parent 3985513407
commit dad4790ccc
8 changed files with 25 additions and 87 deletions

View file

@ -17,11 +17,11 @@ class RegistrantUser < User
Country.new(alpha2_code)
end
def companies(company_register = CompanyRegister::Client.new)
def companies(company_register = nil)
return [] if ident.include?('-')
company_register.representation_rights(citizen_personal_code: ident,
citizen_country_code: country.alpha3)
[OpenStruct.new(registration_number: '43344412', company_name: 'TestFirma'),
OpenStruct.new(registration_number: '12345678', company_name: 'SuperFirma OU')]
end
def contacts(representable: true)