diff options
Diffstat (limited to 'app/graphql/resolvers/group_labels_resolver.rb')
-rw-r--r-- | app/graphql/resolvers/group_labels_resolver.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/graphql/resolvers/group_labels_resolver.rb b/app/graphql/resolvers/group_labels_resolver.rb index a22fa9761d6..932834de895 100644 --- a/app/graphql/resolvers/group_labels_resolver.rb +++ b/app/graphql/resolvers/group_labels_resolver.rb @@ -13,5 +13,11 @@ module Resolvers required: false, description: 'Include only group level labels.', default_value: false + + before_connection_authorization do |nodes, current_user| + if Feature.enabled?(:preload_max_access_levels_for_labels_finder) + Preloaders::LabelsPreloader.new(nodes, current_user).preload_all + end + end end end |