21477-dont_add_anonymous_author_to_assignable_users.diff

Felix Schäfer, 2015-12-10 18:17

Download (452 Bytes)

View differences:

app/models/issue.rb
810 810
  # Users the issue can be assigned to
811 811
  def assignable_users
812 812
    users = project.assignable_users.to_a
813
    users << author if author
813
    users << author if (author && !author.anonymous?)
814 814
    users << assigned_to if assigned_to
815 815
    users.uniq.sort
816 816
  end