myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2897] trunk/app/models/notifier.rb: Messages sho


From: noreply
Subject: [myexperiment-hackers] [2897] trunk/app/models/notifier.rb: Messages should be sent to all admins, not just the owner.
Date: Mon, 16 Jan 2012 08:58:06 -0500 (EST)

Revision
2897
Author
dtm
Date
2012-01-16 08:58:05 -0500 (Mon, 16 Jan 2012)

Log Message

Messages should be sent to all admins, not just the owner.

Modified Paths

Diff

Modified: trunk/app/models/notifier.rb (2896 => 2897)


--- trunk/app/models/notifier.rb	2012-01-10 15:56:40 UTC (rev 2896)
+++ trunk/app/models/notifier.rb	2012-01-16 13:58:05 UTC (rev 2897)
@@ -27,7 +27,7 @@
   end
   
   def membership_request(requestor, network, membership, base_url)
-    recipients network.owner.email
+    recipients network.administrators(true).select{|admin| admin.send_notifications?}.map{|u| u.email}
     from Conf.notifications_email_address
     subject "#{Conf.sitename} - #{requestor.name} would like to join the #{network.title} Group"
     
@@ -40,7 +40,7 @@
   end
   
   def auto_join_group(member, network, base_url)
-    recipients network.owner.email
+    recipients network.administrators(true).select{|admin| admin.send_notifications?}.map{|u| u.email}
     from Conf.notifications_email_address
     subject "#{Conf.sitename} - #{member.name} has joined the #{network.title} Group"
     

reply via email to

[Prev in Thread] Current Thread [Next in Thread]