Skip to content

Commit

Permalink
[#2939] Need to set user org without admin checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 15, 2012
1 parent af95d0d commit 1f710a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckan/logic/action/create.py
Expand Up @@ -151,7 +151,9 @@ def package_create(context, data_dict):
# Needed to let extensions know the package id
model.Session.flush()

_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 1f710a9

Please sign in to comment.