Skip to content

Commit

Permalink
Quick fix for the ownership issue: changed checking for add to share …
Browse files Browse the repository at this point in the history
…permission in order to determine ownership. Addresses #826.
  • Loading branch information
flekschas committed Jan 11, 2016
1 parent 35f32e3 commit 7fde220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion refinery/core/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def transform_res_list(self, user, res_list, request, **kwargs):
owned_res_set = Set(
get_objects_for_user(
user,
'core.add_%s' %
'core.share_%s' %
self.res_type._meta.verbose_name).values_list("id",
flat=True))

Expand Down

0 comments on commit 7fde220

Please sign in to comment.