Get notified about other watched things than issues #1216
When I select "only for things I watch or am involved in" as my Email notifications setting, I want to get notified about everyhing I watch, not just issues. The previous setting would only notify me about issues I'm involved in, now I will additionally be notified about everything I watch.
This commit is contained in:
parent
eb41df17d2
commit
6e30b3d3fc
|
@ -403,6 +403,8 @@ class User < Principal
|
|||
when 'only_my_events'
|
||||
if object.is_a?(Issue) && (object.author == self || object.assigned_to == self)
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue