mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Add a setting to see if legaldocs are mandatory
This commit is contained in:
parent
f7994e599a
commit
a80e813632
5 changed files with 37 additions and 3 deletions
|
@ -4,7 +4,11 @@ module Concerns
|
|||
extend ActiveSupport::Concern
|
||||
|
||||
def legaldoc_mandatory?
|
||||
!legaldoc_optout
|
||||
!legaldoc_not_mandatory?
|
||||
end
|
||||
|
||||
def legaldoc_not_mandatory?
|
||||
legaldoc_optout || !Setting.legal_document_is_mandatory
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue