diff options
author | Sean McGivern <sean@gitlab.com> | 2017-06-23 12:50:33 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-06-30 10:33:45 +0100 |
commit | c400030d0f51c71f32990ab0ecfebfa245ed663e (patch) | |
tree | 549f4159fe8613490d91ed46d11823aa115fcd7e /app/finders/issuable_finder.rb | |
parent | 20bb678d91715817f3da04c7a1b73db84295accd (diff) | |
download | gitlab-ce-c400030d0f51c71f32990ab0ecfebfa245ed663e.tar.gz |
Don't count any confidential issues for non-project-members
Diffstat (limited to 'app/finders/issuable_finder.rb')
-rw-r--r-- | app/finders/issuable_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/issuable_finder.rb b/app/finders/issuable_finder.rb index 558f8b5e2e5..e8605f3d5b3 100644 --- a/app/finders/issuable_finder.rb +++ b/app/finders/issuable_finder.rb @@ -62,7 +62,7 @@ class IssuableFinder # grouping and counting within that query. # def count_by_state - count_params = params.merge(state: nil, sort: nil) + count_params = params.merge(state: nil, sort: nil, for_counting: true) labels_count = label_names.any? ? label_names.count : 1 finder = self.class.new(current_user, count_params) counts = Hash.new(0) |