diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-12 12:46:24 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-12 12:46:24 +0300 |
commit | 6c6bc400d1d8a96f6e443788cd0b2c14addd88e3 (patch) | |
tree | 81dd71fad366f25a7fa92638f50d9dc1ccf04835 /app/policies | |
parent | b09465f38d66d7ff6074843177bcdb7d72caf07f (diff) |
Move code for playing an action to separate service
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/ci/build_policy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/ci/build_policy.rb b/app/policies/ci/build_policy.rb index 0522cbdb331..2c39d31488f 100644 --- a/app/policies/ci/build_policy.rb +++ b/app/policies/ci/build_policy.rb @@ -17,7 +17,7 @@ module Ci alias_method :build, :subject def can_play_action? - return false unless build.playable? + return false unless build.action? ::Gitlab::UserAccess .new(user, project: build.project) |