Skip to content

Show access levels for Maintainer vs Owner for Project invite modals

What does this MR do and why?

For access requests and invitations, show a modal that reflects the allowed access levels for that user.

  • For project maintainers, show Minimal Access, Guest, Reporter, Developer, Maintainer.
  • For project owners, show Owner in addition.

'Owner access' means direct owners OR inherited owners (in the case of personal projects, the owner of the personal namespaces, or in the case of a group, owners of any of the project's parent groups). It also includes admins.

Screenshots or screen recordings

Before

As Owner

Invite member Invite group
image image

As Maintainer

Invite member Invite group
image image

After

As Owner

Invite member Invite group
image image

As Maintainer

Invite member Invite group
image image

How to set up and validate locally

** note: this works for both inherited and direct access. So an Owner of a group can also add Owners to the group's Projects.

As a Project owner

  1. Visit the members section of the project
  2. Click 'Invite a group'
  3. Click 'Select a role' dropdown
  4. Verify that the options include Owner
  5. Close modal
  6. Click 'Invite members'
  7. Click 'Select a role' dropdown
  8. Verify that the options include Owner

As a Project maintainer

  1. Visit the members section of the project
  2. Click 'Invite a group'
  3. Click 'Select a role' dropdown
  4. Verify that the options do not include Owner
  5. Close modal
  6. Click 'Invite members'
  7. Click 'Select a role' dropdown
  8. Verify that the options do not include Owner

As a Group owner

Regardless, the dropdown should show "Owner"

As a Group maintainer

Group maintainers cannot manage members, so the Invite modal does not appear at all.

As an admin

Regardless, the dropdown should show "Owner"

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Sort of Related to #21432 (closed)

Edited by charlie ablett

Merge request reports