Patch #12983 » 0001-Get-notified-about-other-watched-things-than-issues-.patch
| 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
|
||