debian-mirror-gitlab/app/policies/concerns/find_group_projects.rb
2020-08-09 17:41:57 +05:30

13 lines
313 B
Ruby

# 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