You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/10/17 18:34:16 UTC
[whimsy] branch master updated: disallow self-subscription to
legal-internal
This is an automated email from the ASF dual-hosted git repository.
rubys 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 eb4d2e3 disallow self-subscription to legal-internal
eb4d2e3 is described below
commit eb4d2e3d81f7c5d044a5a3d533a130065d7bdd80
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Tue Oct 17 14:33:57 2017 -0400
disallow self-subscription to legal-internal
---
www/committers/subscribe.cgi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/www/committers/subscribe.cgi b/www/committers/subscribe.cgi
index a424e93..7a117ae 100755
--- a/www/committers/subscribe.cgi
+++ b/www/committers/subscribe.cgi
@@ -14,6 +14,11 @@ $SAFE = 1
FORMAT_NUMBER = 3 # json format number
+# lists which are not eligible for self-subscription
+BLACKLIST = %w{
+ legal-internal
+}
+
user = ASF::Person.new($USER)
# authz handled by httpd
@@ -34,6 +39,7 @@ ASF::Podling.list.each {|p|
pmcs = ASF::Committee.pmcs.map(&:mail_list)
lists = ASF::Mail.cansub(user.asf_member?, ASF.pmc_chairs.include?(user))
lists -= ASF::Mail.deprecated
+lists -= BLACKLIST
lists.sort!
addrs = user.all_mail
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].