Check only a merge ability for protected actions

This commit is contained in:
Grzegorz Bizon 2017-05-23 16:33:27 +02:00
parent 8039b9c3c6
commit 16368e6551

View file

@ -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