mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 01:08:48 -03:30
unsaved user system auditor status made more conservative
This commit is contained in:
@@ -81,7 +81,7 @@ def user_is_system_auditor(user):
|
||||
singleton_name='system_auditor', role_field='system_auditor').exists()
|
||||
else:
|
||||
# Odd case where user is unsaved, this should never be relied on
|
||||
user._is_system_auditor = False
|
||||
return False
|
||||
return user._is_system_auditor
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user