提交 0c532dbb 编写于 作者: L Lin Jen-Shin

Check if the key could really download, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7383#note_18518792
上级 af0242b3
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册