Fix permissions to relate work items
What does this MR do and why?
We should allow guests to link work items to each other. For epics, we only allow linking when the related_epics
feature is enabled.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
- Enable the
namespace_level_work_items
feature flag: `Feature.enabled?(:namespace_level_work_items)` - As a non-admin user, create a group and navigate to its work item
Plan->Epics
- Add two epics
- Log in as a guest, or instance administrator
- When you open one of the epics you will not be given the option to link it to other epics
- When checked out to this branch, the 'Add' button should appear.