diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-15 15:09:10 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-15 15:09:10 +0300 |
commit | 3e0c035fe3a10436be36b4e22a4986479821b8e4 (patch) | |
tree | ca812645f554800b2b3d828c48d7da7ed1ae50c2 /lib/gitlab/git_access.rb | |
parent | 74e6480896d7fd478930426460021883ba3b83a4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/git_access.rb')
-rw-r--r-- | lib/gitlab/git_access.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb index 865cac3691e..c96c8afd22d 100644 --- a/lib/gitlab/git_access.rb +++ b/lib/gitlab/git_access.rb @@ -108,7 +108,7 @@ module Gitlab authentication_abilities.include?(:download_code) && deploy_key? && deploy_key.has_access_to?(container) && - (project? && project&.repository_access_level != ::Featurable::DISABLED) + (project? && repository_access_level != ::Featurable::DISABLED) end def user_can_download? @@ -533,6 +533,10 @@ module Gitlab # overriden in EE def check_additional_conditions! end + + def repository_access_level + project&.repository_access_level + end end end |