diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-05 12:25:24 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-05 12:25:24 +0200 |
commit | 936367538043854c7b093b71ca315b8e469c55a4 (patch) | |
tree | 9cf4a769d9cffd234ad00cfadb940bcb14553c07 /app/services | |
parent | b6facd8313f2996ffef9be8eb2c98d5146d7a137 (diff) | |
download | gitlab-ce-936367538043854c7b093b71ca315b8e469c55a4.tar.gz |
Use update build policy instead of new play policy
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/ci/play_build_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/play_build_service.rb b/app/services/ci/play_build_service.rb index 5b3ff1ced38..e24f48c2d16 100644 --- a/app/services/ci/play_build_service.rb +++ b/app/services/ci/play_build_service.rb @@ -1,7 +1,7 @@ module Ci class PlayBuildService < ::BaseService def execute(build) - unless can?(current_user, :play_build, build) + unless can?(current_user, :update_build, build) raise Gitlab::Access::AccessDeniedError end |