mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-24 01:11:12 +00:00
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
This commit is contained in:
parent
430b0b7a81
commit
11579abe8c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user