From 4714acb5d55927869c9061fbfabeac0f745ad435 Mon Sep 17 00:00:00 2001 From: tobes Date: Thu, 15 Nov 2012 15:51:33 +0000 Subject: [PATCH] [#2939] Need to set user org without admin checks in update --- ckan/logic/action/update.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ckan/logic/action/update.py b/ckan/logic/action/update.py index aca71bfe15e..ceb600f4389 100644 --- a/ckan/logic/action/update.py +++ b/ckan/logic/action/update.py @@ -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})