Skip to content

Fix invite group form being shown when member locked

What does this MR do?

Stops the invite-group form from being displayed on the Project Members page when the project's group has member lock (EE only feature) enabled

Resolves https://gitlab.com/gitlab-org/gitlab/-/issues/325339

Related to feature flag rollout: https://gitlab.com/gitlab-org/gitlab/-/issues/247208

Related to !60438 (merged)

Not including a changelog because the feature is still behind feature flag :invite_members_group_modal

Screenshots (strongly suggested)

before (when member_locked? (EE only)) after
before after2
before (when not member_locked?) after (when can share with group but can not invite members)
before-enabled after2

Steps to reproduce

  1. Enable feature flag Feature.enable(:invite_members_group_modal)
  2. Create a group
  3. Create a project in the group
  4. Navigate to "Group" -> "Settings" -> "General" -> "Permissions, LFS, 2FA"
  5. Check "Prevent adding new members to project membership within this group" setting
  6. Navigate to the Project's "Members" page (see screenshots)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #325339

Edited by Jackie Fraser

Merge request reports

Loading