Adjust permission check to allow retrying of jobs on protected tags
Description
With protected branches, there is the ability to allow to push or merge. Merge users are still able to retry pipeline/jobs. With protected tags, you can only set to allow to create. If a wildcard protected tags is set without create, users cannot retry jobs.
Steps to reproduce
- retry a job
Expected results
User can retry the job if they have permissions
Actual results
User cannot retry the job no matter role.
Proposal
Do a permission check for the user trying to retry the job using existing permissions.
Note: This was previously written as a feature request, changed to a bug.
Add an additional dropdown to break down permissions. Allow users to retry jobs without allowing them to create new tags. 'Allow CI/CD'
Links / references
Internal ZD: https://gitlab.zendesk.com/agent/tickets/93505
Edited by James Heimbuck