Use request.app.auth instead of mg_globals
This commit is contained in:
parent
753cfc3bb9
commit
5e5ea4a3e9
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user