license: added a flag to allow hidding license info.

This commit is contained in:
Marcin Kuzminski 2019-10-23 13:07:29 +02:00
parent a9aa65e7f2
commit 1ed9cf6561
3 changed files with 10 additions and 0 deletions

View file

@ -273,6 +273,9 @@ allow_custom_hooks_settings = true
## New generated token value can be found in Admin > settings > license page.
license_token =
## This flag would hide sensitive information on the license page
license.hide_license_info = false
## supervisor connection uri, for managing supervisor and logs.
supervisor.uri =
## supervisord group name/id we only want this RC instance to handle

View file

@ -248,6 +248,9 @@ allow_custom_hooks_settings = true
## New generated token value can be found in Admin > settings > license page.
license_token =
## This flag would hide sensitive information on the license page
license.hide_license_info = false
## supervisor connection uri, for managing supervisor and logs.
supervisor.uri =
## supervisord group name/id we only want this RC instance to handle

View file

@ -363,6 +363,10 @@ def attach_context_attributes(context, request, user_id=None):
context.visual.cut_off_limit_file = safe_int(
config.get('cut_off_limit_file'))
context.license = AttributeDict({})
context.license.hide_license_info = str2bool(
config.get('license.hide_license_info', False))
# AppEnlight
context.appenlight_enabled = str2bool(config.get('appenlight', 'false'))
context.appenlight_api_public_key = config.get(