comparison app/models/.svn/text-base/user.rb.svn-base @ 210:0579821a129a

Update to Redmine trunk rev 4802
author Chris Cannam
date Tue, 08 Feb 2011 13:51:46 +0000
parents 07fa8a8b56a8
children 051f544170fe
comparison
equal deleted inserted replaced
128:07fa8a8b56a8 210:0579821a129a
422 def notify_about?(object) 422 def notify_about?(object)
423 case mail_notification 423 case mail_notification
424 when 'all' 424 when 'all'
425 true 425 true
426 when 'selected' 426 when 'selected'
427 # Handled by the Project 427 # user receives notifications for created/assigned issues on unselected projects
428 if object.is_a?(Issue) && (object.author == self || object.assigned_to == self)
429 true
430 else
431 false
432 end
428 when 'none' 433 when 'none'
429 false 434 false
430 when 'only_my_events' 435 when 'only_my_events'
431 if object.is_a?(Issue) && (object.author == self || object.assigned_to == self) 436 if object.is_a?(Issue) && (object.author == self || object.assigned_to == self)
432 true 437 true