0cf45debb4
Partially addresses #47424.
21 lines
424 B
Ruby
21 lines
424 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Search
|
|
class GroupService < Search::GlobalService
|
|
attr_accessor :group
|
|
|
|
def initialize(user, group, params)
|
|
super(user, params)
|
|
|
|
@default_project_filter = false
|
|
@group = group
|
|
end
|
|
|
|
def projects
|
|
return Project.none unless group
|
|
return @projects if defined? @projects
|
|
|
|
@projects = super.inside_path(group.full_path)
|
|
end
|
|
end
|
|
end
|