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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-04-25 18:08:44 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-04-25 18:08:44 +0300
commit29516285ebf20d2c9836d5263f9d3fba21d04a95 (patch)
treecb88f9184fd4bd12e97a3207eaa9d774014d7679 /app/models/issue.rb
parent52eb17ad859d778104993ee0edfa9c034e59af80 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index c2b8b457049..82ef27b0395 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -142,9 +142,7 @@ class Issue < ApplicationRecord
scope :with_issue_type, ->(types) { where(issue_type: types) }
scope :without_issue_type, ->(types) { where.not(issue_type: types) }
- scope :public_only, -> {
- without_hidden.where(confidential: false)
- }
+ scope :public_only, -> { where(confidential: false) }
scope :confidential_only, -> { where(confidential: true) }