summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-11-16 19:48:54 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-11-16 19:48:54 +0800
commit721478123068c6718ec73c72a7b7d32c00c816df (patch)
tree1156085815a56662684c0cde80c2e167c52b8329
parent5da9bfa453268474b3bff13c63e55b29bbcdf016 (diff)
downloadgitlab-ce-721478123068c6718ec73c72a7b7d32c00c816df.tar.gz
Also need to check against push rules:
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7383#note_18440615
-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