Poor UX of manual job trigger for non-eligible users
Summary
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:
https://gitlab.com/namespace/project/-/jobs/1234xxxx5678
- Click "Trigger this manual action" to see 404 on
https://gitlab.com/namespace/project/-/jobs/1234xxxx5678/play
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).
Possible fixes
I'm fixing it.
Edited by Takuya Noguchi