'Clear runner caches' button returns 403 if you are not Master
Description
The button to clear runner cache, available in CI/CD > Pipelines, is always available but can be triggered only by Masters. Otherwise, a 403
(Access Denied) error is raised.
We should show the button only if the user is Master for the project.
How to reproduce
Go to https://gitlab.com/gitlab-org/gitlab-ce/pipelines (if you are not a Master for that project) and click the Clear runner caches button (it actually shows 404
because of how production environment manages errors).
Implementation/Design decision
- only show to owner/master
- otherwise, hide it
Edited by Fabio Busatto