Skip to content
Snippets Groups Projects
Commit 0c532dbb authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Check if the key could really download, feedback:

parent af0242b3
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment