From 4d7c98e2227b60b59ceff239eba4f93e85b96d8a Mon Sep 17 00:00:00 2001 From: Sean Hammond Date: Thu, 13 Sep 2012 16:54:12 +0200 Subject: [PATCH] [#2375] Fix a crash in organization delete auth Was only crashing with an IOrganizationForm plugin active as the function is only used then --- ckan/logic/auth/organization/delete.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ckan/logic/auth/organization/delete.py b/ckan/logic/auth/organization/delete.py index 33b8a940545..72a1fe54ea1 100644 --- a/ckan/logic/auth/organization/delete.py +++ b/ckan/logic/auth/organization/delete.py @@ -1,6 +1,7 @@ import ckan.logic as logic from ckan.logic.auth import get_package_object, get_group_object, \ - get_user_object, get_resource_object, get_related_object + get_user_object, get_resource_object, get_related_object, \ + get_organization_object from ckan.logic.auth.organization import _groups_intersect from ckan.logic.auth.organization.create import package_relationship_create from ckan.authz import Authorizer