fix: project member filter for bot accounts (#391)

This commit is contained in:
pablohashescobar 2023-03-08 00:59:48 +05:30 committed by GitHub
parent cc498096f3
commit 0bd3e8ae95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -363,6 +363,7 @@ class ProjectMemberViewSet(BaseViewSet):
.get_queryset()
.filter(workspace__slug=self.kwargs.get("slug"))
.filter(project_id=self.kwargs.get("project_id"))
.filter(member__is_bot=False)
.select_related("project")
.select_related("member")
.select_related("workspace", "workspace__owner")