Merged r4761 from trunk.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@4767 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-01-30 06:02:16 +00:00
parent 307e4ceaa2
commit 26016fbf43
2 changed files with 23 additions and 1 deletions
+6 -1
View File
@@ -419,7 +419,12 @@ class User < Principal
when 'all'
true
when 'selected'
# Handled by the Project
# user receives notifications for created/assigned issues on unselected projects
if object.is_a?(Issue) && (object.author == self || object.assigned_to == self)
true
else
false
end
when 'none'
false
when 'only_my_events'