Skip to content

Commit

Permalink
Fix inactive profiles showing up in search results (#352)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcel Kornblum <[email protected]>
  • Loading branch information
SamDudley and marcelkornblum authored Apr 19, 2023
1 parent 9b3a6a6 commit 3838e01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions search/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def get_queryset(self):
people = Person.objects.all()

if not self.request.user.has_perm("peoplefinder.delete_person"):
people.active()
people = people.active()

people.prefetch_related("key_skills", "additional_roles", "teams")
people = people.prefetch_related("key_skills", "additional_roles", "teams")

return people

Expand Down

0 comments on commit 3838e01

Please sign in to comment.