Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/issues_finder.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/app/finders/issues_finder.rb b/app/finders/issues_finder.rb
index cb44575d6f1..a0504ca0879 100644
--- a/app/finders/issues_finder.rb
+++ b/app/finders/issues_finder.rb
@@ -69,16 +69,7 @@ class IssuesFinder < IssuableFinder
end
def filter_items(items)
- issues = super
- issues = by_due_date(issues)
- issues = by_confidential(issues)
- issues
- end
-
- def by_confidential(items)
- return items if params[:confidential].nil?
-
- params[:confidential] ? items.confidential_only : items.public_only
+ by_due_date(super)
end
def by_due_date(items)