You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linked issues list does not enforce project visibility permissions for guest users #10113
When viewing linked issues on an issue detail page, guest users can see linked issue relations even if the linked issue belongs to a project the guest does not have permission to view. The endpoint lists related issue objects without filtering by the viewer's project access rights.
Happy to submit a PR to ensure linked issues verify project viewing permissions before returning results.
Exported visible_issue_q in plane.app.permissions as the centralized issue visibility filter across projects.
In IssueRelationViewSet.list (apps/api/plane/app/views/issue/relation.py), filtered the relations queryset with .filter(visible_issue_q(request.user)). Any related issue the caller does not have permission to view is safely excluded from all relation categories (blocking, blocked_by, duplicate, relates_to, start_after, start_before, finish_after, finish_before).
Added contract test coverage in test_guest_issue_subresource_scope_app.py and test_issue_subresource_scope_app.py covering restricted guests, unjoined sibling projects, unrestricted guests, and project members.
Activity
ghazy2001 commentedon Oct 30, 2026
Hi @shafiktanbir! 👋
I've opened PR #10155 addressing this:
visible_issue_qinplane.app.permissionsas the centralized issue visibility filter across projects.IssueRelationViewSet.list(apps/api/plane/app/views/issue/relation.py), filtered the relationsquerysetwith.filter(visible_issue_q(request.user)). Any related issue the caller does not have permission to view is safely excluded from all relation categories (blocking,blocked_by,duplicate,relates_to,start_after,start_before,finish_after,finish_before).test_guest_issue_subresource_scope_app.pyandtest_issue_subresource_scope_app.pycovering restricted guests, unjoined sibling projects, unrestricted guests, and project members.PR: #10155