mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Flush settings cache on legal doc mandatority check
This commit is contained in:
parent
a80e813632
commit
4a2176d5d7
6 changed files with 63 additions and 2 deletions
|
@ -8,7 +8,8 @@ module Concerns
|
|||
end
|
||||
|
||||
def legaldoc_not_mandatory?
|
||||
legaldoc_optout || !Setting.legal_document_is_mandatory
|
||||
setting = Setting.find_by(var: 'legal_document_is_mandatory')&.value
|
||||
legaldoc_optout || !setting
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue