diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-06 13:08:45 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-06 17:15:15 +0200 |
commit | 5b6202cce1cf7ad5da1fcbfc4e089194311f205b (patch) | |
tree | a042838c1c8728961b6fb6cc952ec7799f85489b /lib | |
parent | 3dbef510c187606ef12eb9f2aaf51f30ddc3e30d (diff) | |
download | gitlab-ce-5b6202cce1cf7ad5da1fcbfc4e089194311f205b.tar.gz |
Do not show play action if user not allowed to run it
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 3495b8d0448..29d0558a265 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) + can?(user, :update_build, subject) && subject.can_play?(user) end def action_icon |