diff options
Diffstat (limited to 'app/graphql/resolvers/issues_resolver.rb')
-rw-r--r-- | app/graphql/resolvers/issues_resolver.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/graphql/resolvers/issues_resolver.rb b/app/graphql/resolvers/issues_resolver.rb index 24009bf7e18..bbf45efa33e 100644 --- a/app/graphql/resolvers/issues_resolver.rb +++ b/app/graphql/resolvers/issues_resolver.rb @@ -17,6 +17,7 @@ module Resolvers before_connection_authorization do |nodes, current_user| projects = nodes.map(&:project) ::Preloaders::UserMaxAccessLevelInProjectsPreloader.new(projects, current_user).execute + ::Preloaders::GroupPolicyPreloader.new(projects.filter_map(&:group), current_user).execute end def ready?(**args) @@ -28,8 +29,6 @@ module Resolvers end def resolve_with_lookahead(**args) - return unless Feature.enabled?(:root_level_issues_query) - issues = apply_lookahead( IssuesFinder.new(current_user, prepare_finder_params(args)).execute ) |