mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 09:18: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()
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user