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>2023-02-07 03:10:31 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-07 03:10:31 +0300
commit11438b1771abda3c216ca627bf5319684474889b (patch)
treea109ca98c2c8836152358b8699324e4261ecf6b2 /app/models
parent09fd08f7e5db4514ce82223ab9a28ed8f823fb17 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models')
-rw-r--r--app/models/issue.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 8b4477d4fcb..b39e37f611b 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -181,11 +181,7 @@ class Issue < ApplicationRecord
scope :confidential_only, -> { where(confidential: true) }
scope :without_hidden, -> {
- if Feature.enabled?(:ban_user_feature_flag)
- where('NOT EXISTS (?)', Users::BannedUser.select(1).where('issues.author_id = banned_users.user_id'))
- else
- all
- end
+ where.not(author_id: Users::BannedUser.select(:user_id))
}
scope :counts_by_state, -> { reorder(nil).group(:state_id).count }