Skip to content

Fix Issue#visible_to_user? to support group-level issues

What does this MR do and why?

Related to #438721 (closed)

The error reported in #438721 (closed) was fixed with !146969 (merged) but the permission checks are incorrect because the project external authorization should be skipped for issue at the group level.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
Screenshot_2024-04-09_at_12.57.19 Screenshot_2024-04-09_at_12.55.32

How to set up and validate locally

  1. Enable namespace_level_work_items feature flag
  2. Using an admin user visit a group with a project and create a work item epic in the group, and an issue in the project
  3. Visit the work item epic and add the issue as related, verify that it is listed in the Linked items panel
  4. Log in with a different non-admin user and visit the issue, verify that no related items are listed
  5. Checkout this branch 438721-fix-issue-visible_to_user-to-support-group-level-issues and verify that the work item epic is displayed as related

Merge request reports