Skip to content

Commit

Permalink
[#2939] Update get action package_relationships_list()
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 10, 2012
1 parent ef74b00 commit 3ad4727
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ckan/logic/action/get.py
Expand Up @@ -646,9 +646,8 @@ def package_relationships_list(context, data_dict):
_check_access('package_relationships_list',context, data_dict)

# TODO: How to handle this object level authz?
relationships = Authorizer().\
authorized_package_relationships(\
user, pkg1, pkg2, rel, model.Action.READ)
# Currently we don't care
relationships = pkg1.get_relationships(with_package=pkg2, type=rel)

if rel and not relationships:
raise NotFound('Relationship "%s %s %s" not found.'
Expand Down

0 comments on commit 3ad4727

Please sign in to comment.