diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-12 13:48:43 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-12 13:48:43 +0200 |
commit | 2aa211fa69ffd02ba11757e06e19d34f6ca51865 (patch) | |
tree | cba18999257837397d1a0bcfb8e6e3de843362ff /lib | |
parent | 55aa727eff50a9472405b302645abb54f28bdba0 (diff) | |
download | gitlab-ce-2aa211fa69ffd02ba11757e06e19d34f6ca51865.tar.gz |
Use build policy to determine if user can play build
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/status/build/play.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ci/status/build/play.rb b/lib/gitlab/ci/status/build/play.rb index 29d0558a265..4c893f62925 100644 --- a/lib/gitlab/ci/status/build/play.rb +++ b/lib/gitlab/ci/status/build/play.rb @@ -10,7 +10,7 @@ module Gitlab end def has_action? - can?(user, :update_build, subject) && subject.can_play?(user) + can?(user, :play_build, subject) end def action_icon |