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:
authorLin Jen-Shin <godfat@godfat.org>2016-11-16 14:48:54 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-11-16 14:48:54 +0300
commit721478123068c6718ec73c72a7b7d32c00c816df (patch)
tree1156085815a56662684c0cde80c2e167c52b8329 /lib/gitlab/git_access.rb
parent5da9bfa453268474b3bff13c63e55b29bbcdf016 (diff)
Also need to check against push rules:
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7383#note_18440615
Diffstat (limited to 'lib/gitlab/git_access.rb')
-rw-r--r--lib/gitlab/git_access.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb
index b462cffeaf6..19bdfc878b1 100644
--- a/lib/gitlab/git_access.rb
+++ b/lib/gitlab/git_access.rb
@@ -91,7 +91,7 @@ module Gitlab
def deploy_key_push_access_check(changes)
if deploy_key.can_push_to?(project)
check_repository_existence!
- check_change_access!(changes) if user
+ check_change_access!(changes)
else
raise UnauthorizedError, ERROR_MESSAGES[:deploy_key]
end