Draft: Allow read_code permission to search code w/ Zoekt
What does this MR do and why?
Users associated with a custrom role with the read_code
permission should be able to search for results in code. This change fixes a defect that prevented users with the read_code
permission from searching (via zoekt) through code that they should have access to.
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 zoekt.
-
Create a custom role with
:read_code
enabled. - Invite a user to a group with the role created in the previous step.
- Login as the new user.
- Search for code at the group level.
- Verify that search results are shown.
Edited by mo khan