1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

unsaved user system auditor status made more conservative

This commit is contained in:
AlanCoding 2016-12-05 17:01:50 -05:00
parent 8c64fa2fe1
commit 1daeff8db1

View File

@ -81,7 +81,7 @@ def user_is_system_auditor(user):
singleton_name='system_auditor', role_field='system_auditor').exists() singleton_name='system_auditor', role_field='system_auditor').exists()
else: else:
# Odd case where user is unsaved, this should never be relied on # Odd case where user is unsaved, this should never be relied on
user._is_system_auditor = False return False
return user._is_system_auditor return user._is_system_auditor