Project

General

Profile

Patch #12983 » 0001-Get-notified-about-other-watched-things-than-issues-.patch

Felix Schäfer, 2013-01-25 15:19

View differences:

app/models/user.rb
when 'only_my_events'
if object.is_a?(Issue) && (object.author == self || is_or_belongs_to?(object.assigned_to) || is_or_belongs_to?(object.assigned_to_was))
true
elsif object.respond_to?(:watched_by?) && object.watched_by?(self) # Make it clear that we always want to be notified about things we watch in this case
true
else
false
end
    (1-1/1)