Skip to content

Commit

Permalink
[#2939] Need to set user org without admin checks in update
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 15, 2012
1 parent 1f710a9 commit 4714acb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckan/logic/action/update.py
Expand Up @@ -269,7 +269,9 @@ def package_update(context, data_dict):

pkg = model_save.package_dict_save(data, context)

_get_action('package_owner_org_update')(context,
context_no_auth = context.copy()
context_no_auth['ignore_auth'] = True
_get_action('package_owner_org_update')(context_no_auth,
{'id': pkg.id,
'organization_id': pkg.owner_org})

Expand Down

0 comments on commit 4714acb

Please sign in to comment.