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:
authorWei-Meng Lee <wlee@gitlab.com>2019-04-12 06:59:09 +0300
committerWei-Meng Lee <wlee@gitlab.com>2019-04-12 09:58:42 +0300
commit3ef5666783b220422283e4d5acbcbbbfac1e935a (patch)
tree915afab9afebcecc7889143520763b3d1ebe0333 /app/finders
parentd25cdca68fb945db6b60cf4da60bc6ed503bea49 (diff)
Only show in autocomplete when author active
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/autocomplete/users_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/autocomplete/users_finder.rb b/app/finders/autocomplete/users_finder.rb
index 45955783be9..9df77dbdc0f 100644
--- a/app/finders/autocomplete/users_finder.rb
+++ b/app/finders/autocomplete/users_finder.rb
@@ -31,7 +31,7 @@ module Autocomplete
# Include current user if available to filter by "Me"
items.unshift(current_user) if prepend_current_user?
- if prepend_author? && (author = User.find_by_id(author_id))
+ if (prepend_author? && author = User.find_by_id(author_id)) && author.active?
items.unshift(author)
end
end