summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-12-12 12:31:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-12-12 12:31:56 +0000
commit11579abe8ce715b46e42a68199f8ed2d485e912a (patch)
tree84342a588a2106e2b9931026eae3b1438c71bb2d /app/models
parent430b0b7a812a361bc02a35d8ce4b5fddc2f6bc6d (diff)
downloadredmine-11579abe8ce715b46e42a68199f8ed2d485e912a.tar.gz
redmine-11579abe8ce715b46e42a68199f8ed2d485e912a.zip
Don't include anonymous user in assignable users (#21477).
Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@14970 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-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 707c4581c..3a063c9fd 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
+ users << author if (author && !author.anonymous?)
users << assigned_to if assigned_to
users.uniq.sort
end