diff --git a/configs/development.ini b/configs/development.ini --- a/configs/development.ini +++ b/configs/development.ini @@ -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 diff --git a/configs/production.ini b/configs/production.ini --- a/configs/production.ini +++ b/configs/production.ini @@ -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 diff --git a/rhodecode/lib/base.py b/rhodecode/lib/base.py --- a/rhodecode/lib/base.py +++ b/rhodecode/lib/base.py @@ -363,6 +363,10 @@ def attach_context_attributes(context, r 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(