diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-09 12:08:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-09 12:08:08 +0300 |
commit | 3834f7913d10b1e549b0c16bf12cd35dd5c97bb4 (patch) | |
tree | 58037bf122fad6337509660fc7db76a3d2cff879 /app/models/preloaders | |
parent | 3a8425c52044f6e2a52f0654b6f94577f9eda291 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/preloaders')
-rw-r--r-- | app/models/preloaders/users_max_access_level_in_projects_preloader.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/preloaders/users_max_access_level_in_projects_preloader.rb b/app/models/preloaders/users_max_access_level_in_projects_preloader.rb index b4ce61a869c..99a31a620c5 100644 --- a/app/models/preloaders/users_max_access_level_in_projects_preloader.rb +++ b/app/models/preloaders/users_max_access_level_in_projects_preloader.rb @@ -12,6 +12,8 @@ module Preloaders def execute return unless @projects.present? && @users.present? + preload_users_namespace_bans(@users) + access_levels.each do |(project_id, user_id), access_level| project = projects_by_id[project_id] @@ -42,5 +44,11 @@ module Preloaders def projects_by_id @projects_by_id ||= @projects.index_by(&:id) end + + def preload_users_namespace_bans(_users) + # overridden in EE + end end end + +# Preloaders::UsersMaxAccessLevelInProjectsPreloader.prepend_mod |