fix: added project member filter

This commit is contained in:
NarayanBavisetti 2023-08-29 12:51:25 +05:30
parent 16f31f7ba1
commit 3a1d945f30

View File

@ -65,6 +65,7 @@ class WorkspaceViewIssuesEndpoint(BaseAPIView):
Issue.issue_objects.filter( Issue.issue_objects.filter(
**queries, **queries,
workspace__slug=slug, workspace__slug=slug,
project__project_projectmember__member=self.request.user
) )
.filter(**filters) .filter(**filters)
.select_related("workspace") .select_related("workspace")