Use request.app.auth instead of mg_globals

This commit is contained in:
Christopher Allan Webber 2014-12-03 11:19:34 -06:00
parent 753cfc3bb9
commit 5e5ea4a3e9

View File

@ -184,7 +184,7 @@ def no_auth_logout(request):
Log out the user if no authentication is enabled, but don't delete Log out the user if no authentication is enabled, but don't delete
the messages 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'] del request.session['user_id']
request.session.save() request.session.save()