diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 17:34:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 17:34:42 +0300 |
commit | 9f46488805e86b1bc341ea1620b866016c2ce5ed (patch) | |
tree | f9748c7e287041e37d6da49e0a29c9511dc34768 /lib/gitlab/gl_repository.rb | |
parent | dfc92d081ea0332d69c8aca2f0e745cb48ae5e6d (diff) |
Add latest changes from gitlab-org/gitlab@13-0-stable-ee
Diffstat (limited to 'lib/gitlab/gl_repository.rb')
-rw-r--r-- | lib/gitlab/gl_repository.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/gitlab/gl_repository.rb b/lib/gitlab/gl_repository.rb index 26440e6f82d..8abefad1ef3 100644 --- a/lib/gitlab/gl_repository.rb +++ b/lib/gitlab/gl_repository.rb @@ -23,11 +23,18 @@ module Gitlab project_resolver: -> (snippet) { snippet&.project }, guest_read_ability: :read_snippet ).freeze + DESIGN = ::Gitlab::GlRepository::RepoType.new( + name: :design, + access_checker_class: ::Gitlab::GitAccessDesign, + repository_resolver: -> (project) { ::DesignManagement::Repository.new(project) }, + suffix: :design + ).freeze TYPES = { PROJECT.name.to_s => PROJECT, WIKI.name.to_s => WIKI, - SNIPPET.name.to_s => SNIPPET + SNIPPET.name.to_s => SNIPPET, + DESIGN.name.to_s => DESIGN }.freeze def self.types @@ -58,5 +65,3 @@ module Gitlab private_class_method :instance end end - -Gitlab::GlRepository.prepend_if_ee('::EE::Gitlab::GlRepository') |