Skip to content

Commit

Permalink
[#953] Allow anyone to read datasets with no org
Browse files Browse the repository at this point in the history
If a dataset has no owner organization, authorize anyone to read that
dataset (regardless of whether it's public or private).
  • Loading branch information
Sean Hammond committed Jun 4, 2013
1 parent c0fffa7 commit ee65f70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/logic/auth/get.py
Expand Up @@ -100,6 +100,8 @@ def package_show(context, data_dict):
auth = new_authz.is_authorized('package_update',
context, data_dict)
authorized = auth.get('success')
elif package.owner_org is None:
return {'success': True}
else:
# anyone can see a public package
if not package.private and package.state == 'active':
Expand Down

0 comments on commit ee65f70

Please sign in to comment.