Check only a merge ability for protected actions
This commit is contained in:
parent
8039b9c3c6
commit
16368e6551
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue