Skip to content

Commit

Permalink
Display results for admins
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Dec 4, 2024
1 parent ec317a4 commit 1cb0d3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/hub/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,9 @@ class CandidateResultsView(SearchMixin):
template_name = "hub/candidate/results.html"

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

0 comments on commit 1cb0d3c

Please sign in to comment.