Class: Groups::ProjectsRequiringAuthorizationsRefresh::OnDirectMembershipFinder

Inherits:
Base
  • Object
show all
Defined in:
app/finders/groups/projects_requiring_authorizations_refresh/on_direct_membership_finder.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Groups::ProjectsRequiringAuthorizationsRefresh::Base

Instance Method Details

#executeObject



12
13
14
15
16
17
18
19
# File 'app/finders/groups/projects_requiring_authorizations_refresh/on_direct_membership_finder.rb', line 12

def execute
  project_ids = Set.new

  project_ids.merge(ids_of_projects_in_hierarchy_and_project_shares(@group))
  project_ids.merge(ids_of_projects_in_hierarchy_and_project_shares_of_shared_groups(@group))

  project_ids.to_a
end