archimed: always test if we are locally logged in
This commit is contained in:
parent
465bbb35b6
commit
d3cee64824
|
@ -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
|
||||
|
|
|
@ -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'],
|
||||
|
|
Reference in New Issue