summaryrefslogtreecommitdiffstats
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-12-12 12:37:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-12-12 12:37:56 +0000
commita5fd84f00eece323b9b43e70cb8f386cd92b762d (patch)
tree6078ea6e842edb9cae61b414008c6efbcc6253f8 /app/models/issue.rb
parentb095389a60f5f06c095a08ec85084bb73134754c (diff)
downloadredmine-a5fd84f00eece323b9b43e70cb8f386cd92b762d.tar.gz
redmine-a5fd84f00eece323b9b43e70cb8f386cd92b762d.zip
Don't include locked user in assignable users (#21477).
git-svn-id: http://svn.redmine.org/redmine/trunk@14972 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 3a063c9fd..ba7a9b159 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -810,7 +810,7 @@ class Issue < ActiveRecord::Base
# Users the issue can be assigned to
def assignable_users
users = project.assignable_users.to_a
- users << author if (author && !author.anonymous?)
+ users << author if author && author.active?
users << assigned_to if assigned_to
users.uniq.sort
end