Skip to content

Commit

Permalink
c.user not defined fix
Browse files Browse the repository at this point in the history
  • Loading branch information
frafra committed Dec 7, 2018
1 parent a9e80dd commit a9e5c91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/lib/helpers.py
Expand Up @@ -1154,8 +1154,8 @@ def sorted_extras(package_extras, auto_clean=False, subs=None, exclude=None):

@core_helper
def check_access(action, data_dict=None):
if not getattr(c, u'user', None):
c.user = None
if not getattr(g, u'user', None):
g.user = ''
context = {'model': model,
'user': c.user}
if not data_dict:
Expand Down

0 comments on commit a9e5c91

Please sign in to comment.