diff options
author | Chantal Rollison <crollison@gitlab.com> | 2018-09-10 17:37:21 -0700 |
---|---|---|
committer | Chantal Rollison <crollison@gitlab.com> | 2018-09-13 08:08:53 -0700 |
commit | e580c2261d12b4542eafba6b5db3b3656d57ed63 (patch) | |
tree | a175ed72fc13c64886952424e084f9b32742fcb0 /app/models/dashboard_group_milestone.rb | |
parent | c7d1eef671dbf598814a6c2ff1f81b924583ae8a (diff) | |
download | gitlab-ce-e580c2261d12b4542eafba6b5db3b3656d57ed63.tar.gz |
Filter group milestones based on user membership
Diffstat (limited to 'app/models/dashboard_group_milestone.rb')
-rw-r--r-- | app/models/dashboard_group_milestone.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/dashboard_group_milestone.rb b/app/models/dashboard_group_milestone.rb index 4e39f60b0d2..067e14dda1c 100644 --- a/app/models/dashboard_group_milestone.rb +++ b/app/models/dashboard_group_milestone.rb @@ -13,7 +13,7 @@ class DashboardGroupMilestone < GlobalMilestone end def self.build_collection(groups) - MilestonesFinder.new(group_ids: groups.pluck(:id)).execute.map { |m| new(m) } # rubocop: disable CodeReuse/Finder + MilestonesFinder.new(group_ids: groups.select(:id)).execute.map { |m| new(m) } # rubocop: disable CodeReuse/Finder end override :group_milestone? |