Group shared with project has higher permission options than should be available
Summary
Group shared with project has higher permission options than should be available
Steps to reproduce
- Create a group (name:
top-level) - Create another group (name:
group-with-members) - Create a project in
top-level(name:some-project) - Add
group-with-memberstosome-projectasDeveloper - Try to change
group-with-memberspermissions insidesome-projectto `Owner`` - Notice the 422 in the browser console
Example Project
https://gitlab.com/top-level-test-group/test-project/-/project_members
Feel free to try it out ourself and play around with my example
What is the current bug behavior?
The Owner option appears inside the project
What is the expected correct behavior?
The Owner option should not appear inside the project
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Possible fixes
Don't show the Owner option in the project share section
