From 1daeff8db1c3305feb6f914f2c1d025feba9ee64 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Mon, 5 Dec 2016 17:01:50 -0500 Subject: [PATCH] unsaved user system auditor status made more conservative --- awx/main/models/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/__init__.py b/awx/main/models/__init__.py index 0475da8eb7..3f7e309940 100644 --- a/awx/main/models/__init__.py +++ b/awx/main/models/__init__.py @@ -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