diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2019-02-25 11:00:24 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-02-26 12:24:39 +0100 |
commit | a555a227dd7a846e5b8e8c84839120d40f9d1090 (patch) | |
tree | 7834ad40f3da966653f7f5ed8a5bf0c118f0b1b1 /app/models/issue.rb | |
parent | afd290a444d09e84092e5a5d738bcf28ec71f3c6 (diff) | |
download | gitlab-ce-a555a227dd7a846e5b8e8c84839120d40f9d1090.tar.gz |
Merge branch 'filter-confidential-issues' into 'master'
Ability to filter confidential issues
Closes #50747
See merge request gitlab-org/gitlab-ce!24960
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 182c5d3d4b0..0b46e949052 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -66,6 +66,7 @@ class Issue < ActiveRecord::Base scope :preload_associations, -> { preload(:labels, project: :namespace) } scope :public_only, -> { where(confidential: false) } + scope :confidential_only, -> { where(confidential: true) } after_save :expire_etag_cache after_save :ensure_metrics, unless: :imported? |