From 1613ed86d45a7694281ba9b161cb5a2c23dc8acf Mon Sep 17 00:00:00 2001 From: amercader Date: Thu, 23 Jan 2014 16:50:38 +0000 Subject: [PATCH] [#1446] Enable DataPusher for private datasets There's no need to prevent the import to the datastore on them, as the datastore will manage the authorization, and logged in users still expect these files to get imported to the DataStore. --- ckanext/datapusher/plugin.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ckanext/datapusher/plugin.py b/ckanext/datapusher/plugin.py index f0b03936359..56fb44d2122 100644 --- a/ckanext/datapusher/plugin.py +++ b/ckanext/datapusher/plugin.py @@ -95,10 +95,7 @@ def notify(self, entity, operation=None): # 1 parameter context = {'model': model, 'ignore_auth': True, 'defer_commit': True} - package = p.toolkit.get_action('package_show')(context, { - 'id': entity.get_package_id() - }) - if (not package['private'] and entity.format and + if (entity.format and entity.format.lower() in self.datapusher_formats and entity.url_type != 'datapusher'): try: