diff options
Diffstat (limited to 'servo/lib')
-rw-r--r-- | servo/lib/middleware.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servo/lib/middleware.py b/servo/lib/middleware.py index 89675e1..6549e6a 100644 --- a/servo/lib/middleware.py +++ b/servo/lib/middleware.py @@ -33,7 +33,7 @@ class LoginRequiredMiddleware: 'django.contrib.auth.middlware.AuthenticationMiddleware'. If that doesn't\ work, ensure your TEMPLATE_CONTEXT_PROCESSORS setting includes\ 'django.core.context_processors.auth'." - if request.user.is_authenticated() == False: + if request.user.is_authenticated == False: path = request.path_info.lstrip('/') if any(m.match(path) for m in EXEMPT_URLS) == False: return HttpResponseRedirect(settings.LOGIN_URL) |