Project

General

Profile

Defect #36368 » fix-assignable_users.patch

salman mp, 2021-12-30 13:10

View differences:

app/models/issue.rb (revision ec859e41d689ee3432113c3bd74ba48d060c9a2f) → app/models/issue.rb (date 1640864802728)
975 975
    return [] if project.nil?
976 976

  
977 977
    users = project.assignable_users(tracker).to_a
978
    users << author if author && author.active?
978
    users << author if author && author.active? && self.visible?(author)
979 979
    if assigned_to_id_was.present? && assignee = Principal.find_by_id(assigned_to_id_was)
980 980
      users << assignee
981 981
    end
(2-2/2)