diff options
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/plugins/acts_as_event/lib/acts_as_event.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/plugins/acts_as_event/lib/acts_as_event.rb b/vendor/plugins/acts_as_event/lib/acts_as_event.rb index 0b7ad21f5..1aa7ddf01 100644 --- a/vendor/plugins/acts_as_event/lib/acts_as_event.rb +++ b/vendor/plugins/acts_as_event/lib/acts_as_event.rb @@ -68,6 +68,13 @@ module Redmine (option.is_a?(Proc) ? option.call(self) : send(option)).merge(options) end + # Returns the mail adresses of users that should be notified + def recipients + notified = project.notified_users + notified.reject! {|user| !visible?(user)} + notified.collect(&:mail) + end + module ClassMethods end end |