Wrong Max Role for Members Invited through Group Invitation
Summary
The list of members under a group or a project reports wrong access level for users that are invited at top-level and as members of an invited group.
Side note: There is also an API aspect to this problem: #389052 (closed) (or a common underlying one)
Steps to reproduce
- Invite
user1to<group>asguest - Create a group:
<group>/RBAC/sports/gitlab-sports-maintainerand inviteuser1asmaintainer - Create a group
<group>/sports - Invite
<group>/RBAC/sports/gitlab-sports-maintainergroup to<group>/sportswith max role -maintainer.
=> The list of members under <group>/sports keeps reporting that user1 still has guest access while his actual access level is maintainer.
Example Project
https://gitlab.com/groups/gitlab-gold/kategrechishkinatestgroup/rbac/sports/gitlab-sports-maintainer/-/group_members?search=ekaterina https://gitlab.com/groups/gitlab-gold/kategrechishkinatestgroup/sports/-/group_members?search=ekaterina
What is the current bug behavior?
user1's Max role under <group>/sports Members list report guest when they actually have maintainer access (they can perform maintainer's actions, like creating projects in the group).
What is the expected correct behavior?
user1's Max role under <group>/sports Members list should report maintainer.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com


