Skip to content

Commit

Permalink
[#2939] Dataset must be active to view
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 5, 2012
1 parent 5b14d0d commit b396cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/logic/auth/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def package_show(context, data_dict):
authorized = auth.get('success')
else:
# anyone can see a public package
if not package.private:
if not package.private and package.state == 'active':
return {'success': True}
user = context.get('user')
user_id = new_authz.get_user_id_for_username(user, allow_none=True)
Expand Down

0 comments on commit b396cbc

Please sign in to comment.