Skip to content

Commit

Permalink
Merge pull request #1575 from archesproject/fix_perm_check_in_add_obj…
Browse files Browse the repository at this point in the history
…ect_to_project_step

Accept uuids rather than nodegroup objects
  • Loading branch information
aarongundel authored Jul 3, 2024
2 parents c79474a + 8ed3edc commit 4a6f3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arches_for_science/views/physical_thing_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ def search_results(self, request):
return HttpResponseNotFound(_("There was an error retrieving the search results"))

def get_permitted_nodegroups(self, user):
return [str(nodegroup.pk) for nodegroup in get_nodegroups_by_perm(user, "models.read_nodegroup")]
return [str(nodegroupid) for nodegroupid in get_nodegroups_by_perm(user, "models.read_nodegroup")]

0 comments on commit 4a6f3d1

Please sign in to comment.