Skip to content

Fix NoMethodError when accessing protected environment for job

Thong Kuah requested to merge fix_user_nil_on_deploy_access_level into master

What does this MR do?

When checking if a job can be :update_build by a user, this user is then passed all the way to ProtectedEnvironment::DeployAccessLevel. As this user can be nil, we return false if so.

Related issue: #30452 (closed)

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Thong Kuah

Merge request reports