Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ishvindersethi22 authored Jul 3, 2024
1 parent 7684971 commit 765eab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1301,9 +1301,9 @@ def list_optimized(self, request):
elif request.user.role == User.WORKSPACE_MANAGER:
projects = (
self.queryset.filter(
workspace_id__in=Workspace.objects.filter(
workspace_id__in=Workspace.objects.filter(
managers=request.user
).values_list("id", flat=True)
).values_list("id", flat=True)
)
| self.queryset.filter(annotators=request.user)
| self.queryset.filter(annotation_reviewers=request.user)
Expand Down

0 comments on commit 765eab2

Please sign in to comment.