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
|