mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
Hide the license key if the user isn't a super user
This commit is contained in:
parent
0f76c34c81
commit
445b1b194e
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user