Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-12-07 21:10:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-07 21:10:36 +0300
commit39d41e02dca2139d0bbd88165affd818c9c82fb6 (patch)
tree4fb80e74a677eb672ec82e151648605f2d2afd47 /lib/gitlab/checks/push_check.rb
parentf276d294878605e289c84beb53032b40c53ba961 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/checks/push_check.rb')
-rw-r--r--lib/gitlab/checks/push_check.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/checks/push_check.rb b/lib/gitlab/checks/push_check.rb
index 7cc5bc56cbb..4ee53eea25a 100644
--- a/lib/gitlab/checks/push_check.rb
+++ b/lib/gitlab/checks/push_check.rb
@@ -14,7 +14,7 @@ module Gitlab
private
def can_push?
- user_access.can_do_action?(:push_code) ||
+ user_access.can_push_to_branch?(ref) ||
project.branch_allows_collaboration?(user_access.user, branch_name)
end
end