diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-25 18:08:44 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-25 18:08:44 +0300 |
commit | 29516285ebf20d2c9836d5263f9d3fba21d04a95 (patch) | |
tree | cb88f9184fd4bd12e97a3207eaa9d774014d7679 /app/models/issue.rb | |
parent | 52eb17ad859d778104993ee0edfa9c034e59af80 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 4 |
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) } |