Feature #20822 » private_issue_notifications.diff
| app/models/issue.rb (working copy) | ||
|---|---|---|
|
if assigned_to
|
||
|
notified += (assigned_to.is_a?(Group) ? assigned_to.users : [assigned_to])
|
||
|
end
|
||
|
if assigned_to_was
|
||
|
notified += (assigned_to_was.is_a?(Group) ? assigned_to_was.users : [assigned_to_was])
|
||
|
unless self.is_private?
|
||
|
if assigned_to_was
|
||
|
notified += (assigned_to_was.is_a?(Group) ? assigned_to_was.users : [assigned_to_was])
|
||
|
end
|
||
|
notified = notified.select {|u| u.active? && u.notify_about?(self)}
|
||
|
notified += project.notified_users
|
||
|
end
|
||
|
notified = notified.select {|u| u.active? && u.notify_about?(self)}
|
||
|
notified += project.notified_users
|
||
|
notified.uniq!
|
||
|
# Remove users that can not view the issue
|
||
|
notified.reject! {|user| !visible?(user)}
|
||