Files
plane/apps
Manish Gupta 2fc210f574 [WEB-8353] fix(security): extend guest issue visibility guard to comments + reactions
The attachment and activity endpoints already route restricted guests
through issue_hidden_from_guest, but this PR's own docstring names
comments as in scope too — that part was never wired up. A restricted
guest blocked from GET .../history/ on a hidden issue could still call
GET .../comments/ (list and retrieve) and read all comment content on
that same issue, and could create/destroy CommentReaction rows keyed by
comment_id with no issue-visibility check at all.

Apply the same guard to IssueCommentViewSet.list/.retrieve. For
CommentReactionViewSet.create/.destroy, which only receive comment_id
(not issue_id) from the URL, resolve the parent issue first and then
apply the identical check.

Co-authored-by: Plane AI <noreply@plane.so>
2026-08-27 10:33:41 +05:30
..