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-17 23:08:24 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-11-17 23:08:24 +0300
commit0c532dbb243bf9bb5bf77248ce87a2a0e4478421 (patch)
tree8ca1238e2dd9e7a6cd962f140dab845ec627a1af /lib/gitlab/git_access.rb
parentaf0242b3d604cc14302f91f0dbe75af0048862d7 (diff)
Check if the key could really download, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7383#note_18518792
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 6be0ab08a1f..d5690f870e9 100644
--- a/lib/gitlab/git_access.rb
+++ b/lib/gitlab/git_access.rb
@@ -45,7 +45,7 @@ module Gitlab
def download_access_check
if deploy_key
- true
+ deploy_key.has_access_to?(project)
elsif user
user_download_access_check
elsif Guest.can?(:download_code, project)