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

Prefer guest_can_download_code? and fix typo

parent 1b150576
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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_downlod_code?
end || guest_can_download_code?
 
unless passed
message = if deploy_key
Loading
Loading
@@ -79,7 +79,7 @@ module Gitlab
check_change_access!(changes)
end
 
def guest_can_downlod_code?
def guest_can_download_code?
Guest.can?(:download_code, project)
end
 
Loading
Loading
module Gitlab
class GitAccessWiki < GitAccess
def guest_can_downlod_code?
def guest_can_download_code?
Guest.can?(:download_wiki_code, project)
end
 
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