diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-23 16:33:27 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-31 10:20:22 +0200 |
commit | 16368e6551dcc716f89be6471da1171b996f4885 (patch) | |
tree | f22856b8d0ec35537dcc8cfa8f897dd72bfe84ca /app/policies | |
parent | 8039b9c3c6caedc19e0e44d086a007e8975134b7 (diff) | |
download | gitlab-ce-16368e6551dcc716f89be6471da1171b996f4885.tar.gz |
Check only a merge ability for protected actions
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 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 |