Commit 1b150576 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Prefer guest_can_downlod_code?

parent d6287ab2
......@@ -51,7 +51,7 @@ module Gitlab
deploy_key.has_access_to?(project)
elsif user
user_can_download_code? || build_can_download_code?
end || Guest.can?(:download_code, project)
end || guest_can_downlod_code?
unless passed
message = if deploy_key
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment