summaryrefslogtreecommitdiffstats
path: root/awx/sso/middleware.py
diff options
context:
space:
mode:
Diffstat (limited to 'awx/sso/middleware.py')
-rw-r--r--awx/sso/middleware.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/awx/sso/middleware.py b/awx/sso/middleware.py
index 4edd4c4a2e..5ed1e5a9e2 100644
--- a/awx/sso/middleware.py
+++ b/awx/sso/middleware.py
@@ -39,7 +39,7 @@ class SocialAuthMiddleware(SocialAuthExceptionMiddleware):
request.successful_authenticator = None
if not request.path.startswith('/sso/') and 'migrations_notran' not in request.path:
- if request.user and request.user.is_authenticated():
+ if request.user and request.user.is_authenticated:
# The rest of the code base rely hevily on type/inheritance checks,
# LazyObject sent from Django auth middleware can be buggy if not
# converted back to its original object.