Add managing protected branches as custom permission
What does this MR do and why?
It adds managing protected branches as a custom ability.
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
Screen_Recording_2024-08-12_at_18.09.50
How to set up and validate locally
- Create a new member group, that enables "manage protected branch" ability, for self-managed on admin - Roles and permissions page, eg. http://gdk.test:3000/admin/application_settings/roles_and_permissions
- Visit any group or project member pages such as
http://gdk.test:3000/groups/flightjs/-/group_members
and assign this custom role to a user - Impersonate this user and go to the project settings - repository page, eg. http://gdk.test:3000/flightjs/Flight/-/settings/repository
- Make sure you see Branch rules and Protected branches section
- Play around with protected branches
Related to #448823 (closed)
Edited by Jarka Košanová