Skip to content

Add admin role option for the default project creation protection

What does this MR do and why?

We have a Default project creation protection setting in Admin -> Settings -> General -> Visibility and access controls that controls the default setting for the group for the minimum access needed to create a project in the group. We have a No one option that prevents even the admins from creating projects in the group. Therefore, we have added a new option Administrators for this setting, allowing admins to create projects in the group by default.

With this new option selected, when admin mode is enabled, the admin will need to enter admin mode to create new projects.

References

#217966 (closed)

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

image

How to set up and validate locally

  1. Login with an admin user and go to https://gdk.test:3000/admin/application_settings/general -> Visibility and access controls -> Default project creation protection and select Administrators.
  2. Login with a regular user, create a new project and you won't see the New project on the group's homepage.
  3. Go to https://gdk.test:3000/projects/new#blank_project. You won't see the newly created group under the Pick a group or namespace dropdown.
  4. Check with an admin user: the New project button should be present and the group is also present in the above dropdown.
  5. If admin mode is enabled, then we need to enter admin mode to verify step 3.

Related to #217966 (closed)

Merge request reports

Loading