Fix - Issue #147

This commit is contained in:
Mauricio Baeza 2018-01-25 12:51:16 -06:00
commit 7e91476e47
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ class AppValues(object):
def on_get(self, req, resp, table):
values = req.params
session = req.env['beaker.session']
if not 'userobj' in session:
if not 'userobj' in session and req.path != '/values/empresas':
session.invalidate()
raise falcon.HTTPTemporaryRedirect('/')