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 authored and tino097 committed Dec 10, 2018
1 parent 9a024d6 commit efcdf4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/lib/helpers.py
Expand Up @@ -1133,6 +1133,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 efcdf4c

Please sign in to comment.