mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Hide the license key if the user isn't a super user
This commit is contained in:
@@ -118,7 +118,7 @@ class ApiV1ConfigView(APIView):
|
|||||||
'''Return various sitewide configuration settings.'''
|
'''Return various sitewide configuration settings.'''
|
||||||
|
|
||||||
license_reader = TaskSerializer()
|
license_reader = TaskSerializer()
|
||||||
license_data = license_reader.from_file()
|
license_data = license_reader.from_file(show_key=request.user.is_superuser)
|
||||||
|
|
||||||
data = dict(
|
data = dict(
|
||||||
time_zone=settings.TIME_ZONE,
|
time_zone=settings.TIME_ZONE,
|
||||||
|
|||||||
Reference in New Issue
Block a user