Skip to content

Commit

Permalink
update section authority page to handle new assignment structure
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Nov 2, 2023
1 parent ec13762 commit 6dc0e53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crowdsourcer/views/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ def get_queryset(self):
if not Assigned.is_user_assigned(
self.request.user,
section=self.kwargs["section_title"],
current_stage=self.current_stage,
):
return None

Expand All @@ -135,8 +134,8 @@ def get_queryset(self):
if not self.request.user.is_superuser:
assigned = Assigned.objects.filter(
user=self.request.user,
active=True,
section=section,
response_type=self.current_stage,
authority__isnull=False,
).values_list("authority__id", flat=True)

Expand Down

0 comments on commit 6dc0e53

Please sign in to comment.