Skip to content

Commit

Permalink
[#2939] add auth check for package_owner_org_update
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 13, 2012
1 parent 4a788ea commit 2754b34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/logic/action/update.py
Expand Up @@ -987,7 +987,7 @@ def package_owner_org_update(context, data_dict):
name_or_id = data_dict.get('id')
organization_id = data_dict.get('organization_id')

# FIXME auth
_check_access('package_owner_org_update', context, data_dict)

pkg = model.Package.get(name_or_id)
if pkg is None:
Expand Down
3 changes: 3 additions & 0 deletions ckan/logic/auth/update.py
Expand Up @@ -172,3 +172,6 @@ def group_update_rest(context, data_dict):

return group_update(context, data_dict)

def package_owner_org_update(context, data_dict):
# sysadmins only
return {'success': False}

0 comments on commit 2754b34

Please sign in to comment.