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 97c54b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 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,9 @@ 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,
response_type=this_stage,
authority__isnull=False,
).values_list("authority__id", flat=True)

Expand Down

0 comments on commit 97c54b3

Please sign in to comment.