Skip to content

Commit

Permalink
Fix is_staff check in results for anonymous users
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Dec 4, 2024
1 parent 2de3f9a commit e91ba96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/hub/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ class CandidateResultsView(SearchMixin):

def get_qs(self):
if FeatureFlag.flag_enabled("enable_results_display") or (
self.request.user and self.request.user.in_staff_groups()
not self.request.user.is_anonymous and self.request.user.in_staff_groups()
):
return Candidate.objects_with_org.filter(
org__status=Organization.STATUS.accepted,
Expand Down

0 comments on commit e91ba96

Please sign in to comment.