From 5e5ea4a3e97c14c377b7f2a82dc7d2558c14dcee Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Wed, 3 Dec 2014 11:19:34 -0600 Subject: [PATCH] Use request.app.auth instead of mg_globals --- mediagoblin/auth/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()