diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-18 12:36:44 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-19 12:23:41 +0200 |
commit | 2532ec9edcf9a961c2020c7180c24ec44a8b8308 (patch) | |
tree | 7bb62d7d9d04db1264a0fcb4c1e34f024759a50a /lib | |
parent | cd546a784434a8d1a872bc37e5a0c252b030f73c (diff) | |
download | gitlab-ce-2532ec9edcf9a961c2020c7180c24ec44a8b8308.tar.gz |
Allow to pull code with deploy key from public projectsallow-deploy-key-to-download-public-projects
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git_access.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb index 308f23bc9bc..8e8f39d9cb2 100644 --- a/lib/gitlab/git_access.rb +++ b/lib/gitlab/git_access.rb @@ -110,6 +110,7 @@ module Gitlab def deploy_key_can_read_project? if deploy_key + return true if project.public? deploy_key.projects.include?(project) else false |