mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 04:17:36 -02:30
Return empty dict if no license present (or invalid key).
This commit is contained in:
@@ -191,6 +191,8 @@ class ApiV1ConfigView(APIView):
|
|||||||
license_data = get_license(show_key=True)
|
license_data = get_license(show_key=True)
|
||||||
else:
|
else:
|
||||||
license_data = get_license(show_key=False)
|
license_data = get_license(show_key=False)
|
||||||
|
if not license_data.get('valid_key', False):
|
||||||
|
license_data = {}
|
||||||
if license_data and 'features' in license_data and 'activity_streams' in license_data['features']:
|
if license_data and 'features' in license_data and 'activity_streams' in license_data['features']:
|
||||||
# FIXME: Make the final setting value dependent on the feature?
|
# FIXME: Make the final setting value dependent on the feature?
|
||||||
license_data['features']['activity_streams'] &= settings.ACTIVITY_STREAM_ENABLED
|
license_data['features']['activity_streams'] &= settings.ACTIVITY_STREAM_ENABLED
|
||||||
|
|||||||
Reference in New Issue
Block a user