Skip to content

Fix access levels for default branch protection

What does this MR do and why?

Fix access levels for default branch protection

This commit fixes access levels for no access and instance admin in default branch protection form and creation

Changelog: fixed

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Create Group or SubGroup
  2. Go to Group->Settings-Repository and change default branch protection settings
  3. Enable Protected, and Allowed to push and Allowed to merge to No One.
  4. Create Project and check project's protected branch.
  5. Repeat steps 2-4 with Allowed to push and Allowed to merge set to Instance Admin

Related to #461563 (closed)

Edited by Harsimar Sandhu

Merge request reports