diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-07 03:10:31 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-07 03:10:31 +0300 |
commit | 11438b1771abda3c216ca627bf5319684474889b (patch) | |
tree | a109ca98c2c8836152358b8699324e4261ecf6b2 /app/models | |
parent | 09fd08f7e5db4514ce82223ab9a28ed8f823fb17 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/issue.rb | 6 |
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 } |