screwdriver
screwdriver copied to clipboard
Unauthorized users look like to be able to change job state.
What happened: In a pipeline options tab, users can click job state toggle button even if users not have permission to the pipeline. After clicking button, a job state appears to have changed. However, actual job state is not changed.
What you expected to happen: Users who don't have permission cannot click job state toggle button.
How to reproduce it:
- Access the pipeline Options page for which you do not have permission.
- Click a job state toggle button.
- A job state appears to have changed (but actually not changed).
One idea is to just not show the Options tab to users that don't have permissions on a pipeline (much like Github does with Settings for repositories).