Skip to content

Commit

Permalink
Merge pull request #545 from okfn/369-update-package-read-issue
Browse files Browse the repository at this point in the history
[#369] updating packages to deleted state had permission issues [for 2.0]
  • Loading branch information
domoritz committed Mar 14, 2013
2 parents c5bdae7 + 0d67c12 commit 80d36de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/logic/action/update.py
Expand Up @@ -288,6 +288,8 @@ def package_update(context, data_dict):

return_id_only = context.get('return_id_only', False)

# we could update the dataset so we should still be able to read it.
context['ignore_auth'] = True
output = data_dict['id'] if return_id_only \
else _get_action('package_show')(context, {'id': data_dict['id']})

Expand Down

0 comments on commit 80d36de

Please sign in to comment.