Skip to content

Commit

Permalink
[#1471] Call proper function on package_delete
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Jan 31, 2014
1 parent ab45d14 commit bb8ae56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/logic/auth/delete.py
Expand Up @@ -3,6 +3,7 @@
from ckan.logic.auth import get_group_object, get_related_object
from ckan.logic.auth import get_resource_object
import ckan.logic.auth.create as _auth_create
import ckan.logic.auth.update as _auth_update
from ckan.lib.base import _


Expand All @@ -14,7 +15,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.check_access('package_update', context, data_dict)
return _auth_update.package_update(context, data_dict)

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

0 comments on commit bb8ae56

Please sign in to comment.