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:
authorMichael Kozono <mkozono@gmail.com>2019-02-25 23:42:34 +0300
committerMichael Kozono <mkozono@gmail.com>2019-02-25 23:42:34 +0300
commite95b88a06d673ff95792d5c7d3934c88051691d9 (patch)
treec61f4999efb0100b9df7d2c9ece7002903235ac5 /app/finders
parent0b0a04fdf7ba31975407daa978f6f8f7c2f8bb3e (diff)
Revert "Merge branch 'filter-confidential-issues' into 'master'"
This reverts commit d133bf84c668df3dfc9938bb04150754cb873c8b, reversing changes made to 7981c0292b07a0138b096fa082341fcb13e9ce2b.
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)