Skip to content

Commit

Permalink
Merge branch 'YH-729'
Browse files Browse the repository at this point in the history
  • Loading branch information
Zharktas committed Mar 23, 2015
2 parents 7afc80a + 60d4b90 commit bc2536e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ckanext-ytp-main/ckanext/ytp/dataset/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def new_resource(self, id, data=None, errors=None, error_summary=None):
except NotFound:
abort(404, _('The dataset {id} could not be found.').format(id=id))
try:
check_access('resource_create', context, pkg_dict)
check_access('resource_create', context, {'package_id': pkg_dict['id']})
except NotAuthorized:
abort(401, _('Unauthorized to create a resource for this package'))

Expand Down

0 comments on commit bc2536e

Please sign in to comment.