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 4, 2018
1 parent 96444ce commit a9e80dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/lib/helpers.py
Expand Up @@ -1154,6 +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
context = {'model': model,
'user': c.user}
if not data_dict:
Expand Down

0 comments on commit a9e80dd

Please sign in to comment.