Skip to content

Commit

Permalink
Merge pull request #4417 from Engerrs/4416-resource_view_reorder
Browse files Browse the repository at this point in the history
[4416] Fix for Resouce View Re-order
  • Loading branch information
smotornyuk committed Sep 11, 2018
2 parents 5860f16 + 7efa63a commit 406be32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/logic/auth/update.py
Expand Up @@ -78,7 +78,7 @@ def resource_view_update(context, data_dict):
return authz.is_authorized('resource_update', context, {'id': data_dict['resource_id']})

def resource_view_reorder(context, data_dict):
return authz.is_authorized('resource_update', context, {'id': data_dict['resource_id']})
return authz.is_authorized('resource_update', context, {'id': data_dict['id']})

def package_relationship_update(context, data_dict):
return authz.is_authorized('package_relationship_create',
Expand Down

0 comments on commit 406be32

Please sign in to comment.