Invited Group with Owner role cannot remove project from subgroup
Summary
A user with Owner role in a group who is invited to a subgroup with Owner role has the ability to Remove Group, which is an owner level permission, but cannot remove a project within the subgroup.
Steps to reproduce
- Add
User Ato subgroupAccessand assign them theOwnerrole. - From subgroup
Content, invite subgroupAccessand assign it theOwnerrole. - As
User A, go to a project in subgroupContent - Navigate to Settings --> General --> Advanced
- Owner actions like Remove Project and Transfer Project are not available
Example Project
- https://gitlab.com/edmond-demo/access/support-content
- https://gitlab.com/edmond-demo/content/support-content/try-to-delete-me
What is the current bug behavior?
- Owner actions like Remove Project and Transfer Project are not available
What is the expected correct behavior?
- Owner actions like Remove Project and Transfer Project are available
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's tough to read otherwise.)
Output of checks
This bug happens on GitLab.com
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
