Hide prefill-variables in Manual job UI when variables are disabled
What does this MR do and why?
This MR restricts access to pipeline variables in the manual job UI based on user role permissions.
What's changed?
- Created a reusable permissions mixin based on !182314 (closed)
- Added conditional rendering of variable UI elements
- Pipeline variables form on the awaiting job
- Additional text on the empty state related to the pipeline variables
- Update variables button on the retrying job
- Updated tests to verify permission-based behavior
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
| User is allowed to view the varialbes | User is not allowed to view the varialbes |
|---|---|
| Screen_Recording_2025-02-28_at_18.56.06 | Screen_Recording_2025-02-28_at_18.57.05 |
| Screen_Recording_2025-02-28_at_18.56.49 | Screen_Recording_2025-03-03_at_10.30.42 |
![]() |
![]() |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Related to #520093 (closed)
Edited by Anna Vovchenko

