fix: only external comments will show in deploy boards (#2010)

This commit is contained in:
Bavisetti Narayan 2023-08-29 15:01:18 +05:30 committed by GitHub
parent 1d30a9a0a8
commit 1cf5e8d80a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1499,6 +1499,7 @@ class IssueCommentPublicViewSet(BaseViewSet):
.get_queryset()
.filter(workspace__slug=self.kwargs.get("slug"))
.filter(issue_id=self.kwargs.get("issue_id"))
.filter(access="EXTERNAL")
.select_related("project")
.select_related("workspace")
.select_related("issue")