Hide the Play All button from users that doesn't have permission to run pipelines
Summary
Play all button is still visible from users that doesn't have permission to run the pipeline.
Steps to reproduce
- Configure Protected Branch.
- Use the
when:manual
keyword in your.gitlab-ci.yml
file. - Push to the Protected Branch to trigger the pipeline.
- Login using an account that has Developer permission.
- The Play All button is visible.
On GitLab 12.10, clicking the Play All button will show the following error in the UI:
An error occurred while making the request.
On GitLab 13.5, clicking the Play All button will do nothing.
What is the current bug behavior?
The Play all button is visible to users that doesn't have permission to run pipelines.
What is the expected correct behavior?
The Play all button should not be visible to users that doesn't have permission to run pipelines.
Relevant screenshot
Customer information
Edited by Julian Paul Dasmarinas