Skip to content

Commit

Permalink
[#3194] g is not dict
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Aug 23, 2016
1 parent 9de80d1 commit b13e8ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/views/__init__.py
Expand Up @@ -22,7 +22,7 @@ def check_session_cookie(response):
'''
for cookie in request.cookies:
# Remove the ckan session cookie if logged out.
if cookie == u'ckan' and not g.get('user'):
if cookie == u'ckan' and not getattr(g, 'user', None):
# Check session for valid data (including flash messages)
is_valid_cookie_data = False
for key, value in session.items():
Expand Down

0 comments on commit b13e8ac

Please sign in to comment.