This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 490eabc2 Add special code for M&P lists
490eabc2 is described below

commit 490eabc25ec5fecba43e8696271ca7aa6d4e4a98
Author: Sebb <s...@apache.org>
AuthorDate: Thu Mar 21 00:24:21 2024 +0000

    Add special code for M&P lists
---
 www/roster/models/nonpmc.rb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/www/roster/models/nonpmc.rb b/www/roster/models/nonpmc.rb
index 1dec3440..937b6bb7 100644
--- a/www/roster/models/nonpmc.rb
+++ b/www/roster/models/nonpmc.rb
@@ -31,6 +31,15 @@ class NonPMC
       require 'whimsy/asf/mlist'
       moderators, modtime = ASF::MLIST.list_moderators(mail_list)
       subscribers, subtime = ASF::MLIST.list_subs(mail_list) # counts only, no 
archivers
+      if mail_list == 'press' # SPECIAL
+        %w{markpub announce}.each do |alt_list|
+          mods, _ = ASF::MLIST.list_moderators(alt_list)
+          moderators.merge! mods
+          subs, _ = ASF::MLIST.list_subs(alt_list)
+          subscribers.merge! subs
+        end
+      end
+      # TODO: do any non-PMCs have private lists?
       analysePrivateSubs = currentUser.asf_member?
       unless analysePrivateSubs # check for private moderator if not already 
allowed access
         user_mail = currentUser.all_mail || []

Reply via email to