mirror of
https://github.com/makeplane/plane.git
synced 2026-09-02 03:59:00 +02:00
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>