Skip to content

Commit

Permalink
Code clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
ngehlenborg committed Jun 26, 2015
1 parent 94150bf commit 9146944
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions refinery/core/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,8 @@ def transform_res_list(self, user, res_list, request, **kwargs):
setattr(res, 'is_owner', res.id in owned_res_set )
setattr(res, 'public', res.id in public_res_set )

for i in res_list:
if 'sharing' in kwargs and kwargs['sharing']:
setattr(i, 'share_list', self.get_share_list(user, i))
setattr(res, 'share_list', self.get_share_list(user, res))

# Filter for query flags.
res_list = self.query_filtering(res_list, request.GET)
Expand Down

0 comments on commit 9146944

Please sign in to comment.