From d0671b705f6634850dea16b5576084f075d5d448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=A4fer?= Date: Fri, 25 Jan 2013 15:18:06 +0100 Subject: [PATCH] Get notified about other watched things than issues #12983 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 watched issues, now I will be notified about everything I watch. --- app/models/user.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/user.rb b/app/models/user.rb index a4e1fe4..b744c55 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -578,6 +578,8 @@ class User < Principal 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.8.1.1