Skip to content

Fix users autocomplete in a subgroup

Sean McGivern requested to merge fix-subgroup-autocomplete into master

What does this MR do?

When doing user autocomplete in a subgroup, look for users who have access from parent groups too.

Are there points in the code the reviewer needs to double check?

Don't think so, although it doesn't look like Group#users_with_parents was used at all in CE before I added this 🤔

Why was this MR needed?

This broke group issue boards in subgroups. That's an EE feature, but the fix belongs in CE too.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/39452.

Merge request reports