aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/person.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/person.rb')
-rw-r--r--lib/mauve/person.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/mauve/person.rb b/lib/mauve/person.rb
index 6178fa0..d5e5ea9 100644
--- a/lib/mauve/person.rb
+++ b/lib/mauve/person.rb
@@ -302,6 +302,15 @@ module Mauve
return CalendarInterface.is_user_off_sick?(self.username, at)
end
+ def resolve_notifications(default_every=nil, default_during=nil, at = nil)
+ self.notifications.collect do |notification|
+ this_notification = Notification.new(self)
+ this_notification.every = default_every || notification.every
+ this_notification.during = default_during || notification.during
+ this_notification
+ end.flatten.compact
+ end
+
end
end