whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Allow PPMC members(owners) to subscribe to podling private lists
Date Mon, 04 Mar 2019 20:02:03 GMT
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 7e070d7  Allow PPMC members(owners) to subscribe to podling private lists
7e070d7 is described below

commit 7e070d7d501470d626f17f44a603f28073249132
Author: Sebb <sebb@apache.org>
AuthorDate: Mon Mar 4 20:02:02 2019 +0000

    Allow PPMC members(owners) to subscribe to podling private lists
---
 www/committers/subscribe.cgi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/committers/subscribe.cgi b/www/committers/subscribe.cgi
index 6961ea7..004a356 100755
--- a/www/committers/subscribe.cgi
+++ b/www/committers/subscribe.cgi
@@ -39,6 +39,8 @@ ASF::Podling.list.each {|p|
 pmcs = ASF::Committee.pmcs.map(&:mail_list)
 ldap_pmcs = [] # No need to get the info for ASF members
 ldap_pmcs = user.committees.map(&:mail_list) unless user.asf_member?
+# Also allow podling private lists to be subscribed by podling owners
+ldap_pmcs += user.podlings.map(&:mail_list) unless user.asf_member?
 lists = ASF::Mail.cansub(user.asf_member?, ASF.pmc_chairs.include?(user), ldap_pmcs)
 lists -= ASF::Mail.deprecated
 lists -= BLACKLIST


Mime
View raw message