Show re-deploy/rollback button to deployment-only users
What does this MR do and why?
Shows the re-deploy/rollback buttons to users with deployment-only access by changing the button's visibility permission to play_job
.
Related to #341182 (closed)
Screenshots or screen recordings
Setup
- An operator group named
H5bp
is invited to the project as a reporter
-
@josefa
is a member of theH5bp
group
-
H5bp
is allowed to deploy to thedevelopment
protected environment
Before
- While impersonating
@josefa
, the re-deploy/rollback button is not visible on the environment detail page
After
- While impersonating
@josefa
, the re-deploy/rollback button is visible on the environment detail page
How to set up and validate locally
- Set up Deployment-only access to a protected environment.
- Create a deployment (if none exist already).
- As the user with deployment-only access, navigate to the environment details page.
- Verify that the re-deploy/rollback buttons are visible and can be clicked.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Alishan Ladhani