summaryrefslogtreecommitdiff
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-14 15:08:04 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-14 15:08:04 +0000
commit8c4225a66b12683bcf1bba9bb9328fcf65395b6d (patch)
treed3b583abd26fcbbcbf0db828aee2b940414e1649 /app/models/issue.rb
parent075c890053f626018ba680e4da21a93743acb244 (diff)
downloadgitlab-ce-8c4225a66b12683bcf1bba9bb9328fcf65395b6d.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index b338ecfce88..f517f42d6ba 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -178,14 +178,6 @@ class Issue < ApplicationRecord
scope :confidential_only, -> { where(confidential: true) }
- scope :without_hidden, -> {
- if Feature.enabled?(:ban_user_feature_flag)
- where.not(author_id: Users::BannedUser.all.select(:user_id))
- else
- all
- end
- }
-
scope :counts_by_state, -> { reorder(nil).group(:state_id).count }
scope :service_desk, -> { where(author: ::User.support_bot) }
@@ -658,10 +650,6 @@ class Issue < ApplicationRecord
end
end
- def hidden?
- author&.banned?
- end
-
# Necessary until all issues are backfilled and we add a NOT NULL constraint on the DB
def work_item_type
super || WorkItems::Type.default_by_type(issue_type)