Add admin_cicd_variables custom ability for projects
What does this MR do and why?
This allows admin access to Project CI/CD variables as a customizable ability, so that it can be added onto any base role.
Issue: #437947 (closed)
Screenshots or screen recordings
Group member with base access level guest and the custom admin_cicd_variables role:
How to set up and validate locally
- Enable the
custom_ability_admin_cicd_variablesFeature Flag:Feature.enable(:custom_ability_admin_cicd_variables) - Create a group and a project and apply the Ultimate license to the group
- If SaaS mode is:
-
off: Visit http://localhost:3000/admin/application_settings/roles_and_permissions and create a custom role with the
Admin cicd variablespermission enabled, based on Guest access -
on: Visit http://localhost:3000/groups/${new_group}/-/settings/roles_and_permissions and create a custom role with the
Admin cicd variablespermission enabled, based on Guest access
-
off: Visit http://localhost:3000/admin/application_settings/roles_and_permissions and create a custom role with the
- Invite a user to the group and assign the new custom role to the user
- Visit http://localhost:3000/groups/
{new_group}/{new_project}/-/settings/ci_cd and verify the page is accessible and you can view/create/edit/delete project variables
Edited by Alex Buijs
