diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-23 17:33:27 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-31 11:20:22 +0300 |
commit | 16368e6551dcc716f89be6471da1171b996f4885 (patch) | |
tree | f22856b8d0ec35537dcc8cfa8f897dd72bfe84ca /app/policies/ci | |
parent | 8039b9c3c6caedc19e0e44d086a007e8975134b7 (diff) |
Check only a merge ability for protected actions
Diffstat (limited to 'app/policies/ci')
-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 d4af4490608..2d7405dc240 100644 --- a/app/policies/ci/build_policy.rb +++ b/app/policies/ci/build_policy.rb @@ -23,7 +23,7 @@ module Ci !::Gitlab::UserAccess .new(user, project: build.project) - .can_push_to_branch?(build.ref) + .can_merge_to_branch?(build.ref) end end end |