summaryrefslogtreecommitdiff
path: root/lib/gitlab/git_access.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-11-11 21:44:33 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-11-11 21:44:33 +0800
commit71ae01fefe62caf396640affb8ca618fe68db5a0 (patch)
tree91ffeda13f1fee71bfec0c9b3ffb4cb99cd2f096 /lib/gitlab/git_access.rb
parent38fbcb99dba61cfae1b788e0ec947911c4d14dd8 (diff)
downloadgitlab-ce-71ae01fefe62caf396640affb8ca618fe68db5a0.tar.gz
Add more tests and fix write to project check
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 78f562821ea..96979398c83 100644
--- a/lib/gitlab/git_access.rb
+++ b/lib/gitlab/git_access.rb
@@ -89,7 +89,7 @@ module Gitlab
end
def deploy_key_push_access_check(changes)
- if deploy_key.can_push?
+ if deploy_key.can_push_to?(project)
check_repository_existence!
check_change_access!(changes) if user
else