diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-11-18 04:08:24 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-11-18 04:08:24 +0800 |
commit | 0c532dbb243bf9bb5bf77248ce87a2a0e4478421 (patch) | |
tree | 8ca1238e2dd9e7a6cd962f140dab845ec627a1af /lib | |
parent | af0242b3d604cc14302f91f0dbe75af0048862d7 (diff) | |
download | gitlab-ce-0c532dbb243bf9bb5bf77248ce87a2a0e4478421.tar.gz |
Check if the key could really download, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7383#note_18518792
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git_access.rb | 2 |
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) |