diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2014-12-03 11:19:34 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2014-12-03 15:40:57 -0600 |
commit | 5e5ea4a3e97c14c377b7f2a82dc7d2558c14dcee (patch) | |
tree | 3855746c6efbcdf2e92f088aa0477cb5680215fd /mediagoblin/auth | |
parent | 753cfc3bb9326a8be2928f1289e908c3aa520649 (diff) | |
download | mediagoblin-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.py | 2 |
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() |