Skip to content

Commit

Permalink
[#1471] Use check_access, not get_action
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Jan 29, 2014
1 parent f03d8f0 commit d15cab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/logic/auth/delete.py
Expand Up @@ -14,7 +14,7 @@ def user_delete(context, data_dict):
def package_delete(context, data_dict):
# Defer auhtorization for package_delete to package_update, as deletions
# are essentially changing the state field
return logic.get_action('package_update')(context, data_dict)
return logic.check_access('package_update')(context, data_dict)

def resource_delete(context, data_dict):
model = context['model']
Expand Down

0 comments on commit d15cab9

Please sign in to comment.