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:
parent
8c64fa2fe1
commit
1daeff8db1
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user