Update access level for imported protected tags

What does this MR do and why?

Problem

Protected tags permission does not reset to maintainer when a project is created from a template.

Solution

Reset permissions to maintainer level when the importer is not the group owner of the project.

This solution takes into account the export/import access level for protected branches and also the updates made in this !110765 (merged) as well

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
Screenshot_2024-09-22_at_14.56.28 Screenshot_2024-09-22_at_14.56.11

How to set up and validate locally

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

  1. Create a group project template and add a protected tag in the repository settings
  2. Create a new project and select "create from template"
  3. Select the template created from step 1
  4. After the import is done, check the repository settings of the newly created project
  5. Confirm the protected tags create access level permissions is set to maintainer

Related to #455296 (closed)

Merge request reports

Loading