archimed: always test if we are locally logged in

This commit is contained in:
Jérôme Schneider 2015-07-23 11:10:15 +02:00
parent 465bbb35b6
commit d3cee64824
2 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ def is_user_locally_logged_in(env, request, response):
def is_logged_in(env, values, request, response):
session = env['beaker.session']
if response.msg and response and 'account_logoff' in response.msg:
if response.msg and 'account_logoff' in response.msg:
session['locally_logged_in'] = True
else:
session['locally_logged_in'] = False

View File

@ -51,7 +51,7 @@ mapping = [
'on_response': [{'auth': 'store_credentials_in_session'}]
},
{
'path': r'/%s' % base,
'path': r'/',
'method': 'GET',
'on_response': [{
'content-types': ['text/html'],