Skip to content

Commit

Permalink
[#953] Don't show inactive datasets
Browse files Browse the repository at this point in the history
Don't allow non-sysadmins to read inactive datasets.

This fixes a test that was failing.
  • Loading branch information
Sean Hammond committed Jun 4, 2013
1 parent 3b9ae1c commit d07da3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/logic/auth/get.py
Expand Up @@ -100,7 +100,7 @@ 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:
elif package.owner_org is None and package.state == 'active':
return {'success': True}
else:
# anyone can see a public package
Expand Down

0 comments on commit d07da3b

Please sign in to comment.