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

Screen_Shot_2020-05-12_at_7.48.13_PM

  • Add User A to subgroup Access and assign them the Owner role.
  • From subgroup Content, invite subgroup Access and assign it the Owner role.
  • As User A, go to a project in subgroup Content
  • Navigate to Settings --> General --> Advanced
  • Owner actions like Remove Project and Transfer Project are not available

Example Project

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)