Skip to content

Commit

Permalink
[#1446] Enable DataPusher for private datasets
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
amercader committed Jan 23, 2014
1 parent 853568a commit 1613ed8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ckanext/datapusher/plugin.py
Expand Up @@ -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:
Expand Down

0 comments on commit 1613ed8

Please sign in to comment.