debian-mirror-gitlab/app/policies/concerns/find_group_projects.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
313 B
Ruby
Raw Normal View History

2019-12-04 20:38:33 +05:30
# frozen_string_literal: true
module FindGroupProjects
extend ActiveSupport::Concern
2020-07-28 23:09:34 +05:30
def group_projects_for(user:, group:, only_owned: true)
2019-12-04 20:38:33 +05:30
GroupProjectsFinder.new(
group: group,
current_user: user,
2020-07-28 23:09:34 +05:30
options: { include_subgroups: true, only_owned: only_owned }
2019-12-04 20:38:33 +05:30
).execute
end
end