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 |
---|---|
How to set up and validate locally
- Enable
namespace_level_work_items
feature flag - 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
- Visit the work item epic and add the issue as related, verify that it is listed in the Linked items panel
- Log in with a different non-admin user and visit the issue, verify that no related items are listed
- 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