• Thong Kuah's avatar
    Fix NoMethodError when accessing protected environment for job · 08429f67
    Thong Kuah authored
    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.
    
    Also fixes environment json schema so that it works correctly with
    oneOf.
    08429f67
deploy_access_level.rb 1.23 KB