Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-06-15 15:09:10 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-15 15:09:10 +0300
commit3e0c035fe3a10436be36b4e22a4986479821b8e4 (patch)
treeca812645f554800b2b3d828c48d7da7ed1ae50c2 /lib/gitlab/git_access.rb
parent74e6480896d7fd478930426460021883ba3b83a4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/git_access.rb')
-rw-r--r--lib/gitlab/git_access.rb6
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