mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 01:38:50 -03: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.'''
|
||||
|
||||
license_reader = TaskSerializer()
|
||||
license_data = license_reader.from_file()
|
||||
license_data = license_reader.from_file(show_key=request.user.is_superuser)
|
||||
|
||||
data = dict(
|
||||
time_zone=settings.TIME_ZONE,
|
||||
|
||||
Reference in New Issue
Block a user