mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +02:00
12 lines
244 B
Ruby
12 lines
244 B
Ruby
module Registrar::LegalDoc
|
|
extend ActiveSupport::Concern
|
|
|
|
def legaldoc_mandatory?
|
|
!legaldoc_not_mandatory?
|
|
end
|
|
|
|
def legaldoc_not_mandatory?
|
|
setting = Setting.legal_document_is_mandatory
|
|
legaldoc_optout || !setting
|
|
end
|
|
end
|