diff --git a/backend/projects/views.py b/backend/projects/views.py index 46c25b09..9aecbece 100644 --- a/backend/projects/views.py +++ b/backend/projects/views.py @@ -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)