Skip to content

Follow-up from "Hide `New subgroup` button if visibility is restricted"

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

What does this MR do and why?

Extract the logic for the allowed levels from the group policy to the visibility level. This brings more simplicity to the group policy.

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.

How to set up and validate locally

This change should be purely refactoring, but you can check if the button to create a subgroup is behaving as usual.

Related to #455557 (closed)

Edited by Matias Alvarez

Merge request reports