diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-12-06 21:09:23 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-12-06 21:09:23 +0800 |
commit | 1b150576d9de9096796f76e1635d27ddaa2b1dd5 (patch) | |
tree | 9d9f09ad063af863e7c6fd55d519e58b35b1f581 /lib | |
parent | d6287ab230d1507893895397e759eaf38377cb18 (diff) | |
download | gitlab-ce-1b150576d9de9096796f76e1635d27ddaa2b1dd5.tar.gz |
Prefer guest_can_downlod_code?
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git_access.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb index 9563fa7cafb..d42879e38cd 100644 --- a/lib/gitlab/git_access.rb +++ b/lib/gitlab/git_access.rb @@ -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 |