Skip to content

Restrict accesss requests when group has reached member limit

What does this MR do and why?

What

Restrict access requests when group has reached member limit

  • Restricts access request actions when group has reached member limit
  • Removes option to approve request in the UI

Why

See context in https://gitlab.com/gitlab-org/gitlab/-/issues/428495

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. public visibility is set on a group
  2. user requests access from group overview page
  3. owner changes group visibility to private
  4. group then is set to limit or over limit of 5(if over when public -> private is changed)
  5. group owner then goes to the members page for the group

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/428495

Edited by Jay Montal

Merge request reports