aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/auth/tools.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/auth/tools.py')
-rw-r--r--mediagoblin/auth/tools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/auth/tools.py b/mediagoblin/auth/tools.py
index f153737b..3737fab6 100644
--- a/mediagoblin/auth/tools.py
+++ b/mediagoblin/auth/tools.py
@@ -184,7 +184,7 @@ def no_auth_logout(request):
Log out the user if no authentication is enabled, but don't delete
the messages
"""
- if not mg_globals.app.auth and 'user_id' in request.session:
+ if not request.app.auth and 'user_id' in request.session:
del request.session['user_id']
request.session.save()