Invite private group to project return 404 error
When a user is invited directly to a project in a subgroup and the user try to invite the group as a member of another project outside the group, the invitation page redirect to 404 page not found
Steps to reproduce
- Create private group
- Create a private project
- Invite a user
example-userdirectly to the
- As user
example-user, create a project under the user namespace
- As user
example-user, invite group
- See the 404 page
(If possible, please create an example project here on GitLab.com that exhibits the problematic behavior, and link to it here in the bug report)
(If you are using an older version of GitLab, this will also determine whether the bug is fixed in a more recent version)
What is the current bug behavior?
User was presented with a 404 page when trying to invite a group to the project
What is the expected correct behavior?
Either show error message of why user cannot invite the group to the project or allow user to invite the group successfully.
Output of checks
This bug happens on GitLab.com 12.10.0-pre cc49b6fe