Welcome to mirror list, hosted at ThFree Co, Russian Federation.

find_group_projects.rb « concerns « policies « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 914e336b4ab70e4d4a3952b49132043f310d5f32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module FindGroupProjects
  extend ActiveSupport::Concern

  def group_projects_for(user:, group:, exclude_shared: true)
    GroupProjectsFinder.new(
      group: group,
      current_user: user,
      options: { include_subgroups: true, exclude_shared: exclude_shared }
    ).execute
  end
end