aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/auth
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2014-12-03 11:19:34 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2014-12-03 15:40:57 -0600
commit5e5ea4a3e97c14c377b7f2a82dc7d2558c14dcee (patch)
tree3855746c6efbcdf2e92f088aa0477cb5680215fd /mediagoblin/auth
parent753cfc3bb9326a8be2928f1289e908c3aa520649 (diff)
downloadmediagoblin-5e5ea4a3e97c14c377b7f2a82dc7d2558c14dcee.tar.lz
mediagoblin-5e5ea4a3e97c14c377b7f2a82dc7d2558c14dcee.tar.xz
mediagoblin-5e5ea4a3e97c14c377b7f2a82dc7d2558c14dcee.zip
Use request.app.auth instead of mg_globals
Diffstat (limited to 'mediagoblin/auth')
-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()