Skip to content

Commit

Permalink
Allow admins to view results beforehand
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Oct 2, 2024
1 parent ef82346 commit bb5a16d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/hub/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,10 @@ class CandidateResultsView(HubListView):
template_name = "hub/candidate/results.html"

def get_qs(self):
if FeatureFlag.flag_enabled("enable_results_display"):
if (
FeatureFlag.flag_enabled("enable_results_display")
or self.request.user.groups.filter(name__in=[STAFF_GROUP, SUPPORT_GROUP]).exists()
):
return Candidate.objects_with_org.filter(
org__status=Organization.STATUS.accepted,
status=Candidate.STATUS.confirmed,
Expand Down

0 comments on commit bb5a16d

Please sign in to comment.