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: aad9081bd7d3cc111690a9113fac0a03750c7564 (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:, only_owned: true)
    GroupProjectsFinder.new(
      group: group,
      current_user: user,
      options: { include_subgroups: true, only_owned: only_owned }
    ).execute
  end
end