summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-07-07 09:08:35 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-07 09:08:35 +0000
commit6b8af95df6c5702343c32ae266b0eb35e06d0546 (patch)
tree400c0cf36de7be6737ed18d537f8c74e69b604cd /lib/api
parent7c33a59ac3b716b38baffbfe5c7f15e8104f3c6f (diff)
downloadgitlab-ce-6b8af95df6c5702343c32ae266b0eb35e06d0546.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/projects.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 364d86329e7..3b1d239398f 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -157,6 +157,8 @@ module API
[options[:with].prepare_relation(projects, options), options]
end
+ Preloaders::UserMaxAccessLevelInProjectsPreloader.new(records, current_user).execute if current_user
+
present records, options
end