Poor UX of manual job trigger for non-eligible users
Manual job trigger has a poor user experience (UX) for non-eligible users.
Steps to reproduce
- Access to some job with manual trigger, which is not started yet:
- Click "Trigger this manual action" to see 404 on
What is the current bug behavior?
Non-eligible users will see "Trigger this manual action" button and (if clicking it) see 404 error.
What is the expected correct behavior?
Non-eligible users SHOULD NOT see "Trigger this manual action" button.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com (EE 10.6.2).
I'm fixing it.