Skip to content

Commit

Permalink
Merge branch 'release-v1.7.1' of https://github.com/okfn/ckan into re…
Browse files Browse the repository at this point in the history
…lease-v1.7.1
  • Loading branch information
rossjones committed May 17, 2012
2 parents 0473635 + 4a542ee commit 5e7baec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ckan/controllers/related.py
@@ -1,5 +1,4 @@


import ckan.model as model
import ckan.logic as logic
import ckan.lib.base as base
Expand All @@ -18,8 +17,10 @@ def list(self, id):

try:
logic.check_access('package_show', context, data_dict)
except logic.NotFound:
base.abort(404, _('Dataset not found'))
except logic.NotAuthorized:
abort(401, _('Not authorized to see this page'))
base.abort(401, _('Not authorized to see this page'))

try:
c.pkg_dict = logic.get_action('package_show')(context, data_dict)
Expand Down

0 comments on commit 5e7baec

Please sign in to comment.