Commit f8f4ad57d9122dceb4162a3d49228940f24be161:
    exclude non-pmcs from the list
    git-svn-id: 
https://svn.apache.org/repos/infra/infrastructure/trunk/projects/whimsy@820816 
90ea9780-b833-de11-8433-001ec94261de


Branch: refs/heads/master
Author: Sam Ruby <[email protected]>
Committer: Sam Ruby <[email protected]>
Pusher: rubys <[email protected]>

------------------------------------------------------------
www/officers/mlreq.cgi                                       | +++++ --
------------------------------------------------------------
7 changes: 5 additions, 2 deletions.
------------------------------------------------------------


diff --git a/www/officers/mlreq.cgi b/www/officers/mlreq.cgi
index dadd378..716ba98 100755
--- a/www/officers/mlreq.cgi
+++ b/www/officers/mlreq.cgi
@@ -67,8 +67,10 @@ _html do
             placeholder: 'name'
           _ '@'
           _select name: 'subdomain' do
+            pmcs = ASF::Committee.list.map(&:name) - %w(incubator)
             lists.grep(/^\w+-private$/).sort.each do |list|
-              _option list.chomp('-private') unless list == 'incubator-private'
+              list = list.chomp('-private')
+              _option list if pmcs.include? list
             end
           end
           _ '.'
@@ -172,7 +174,8 @@ _html do
             end
           end
 
-          unless lists.include? "#{@subdomain}-private"
+          unless lists.include? "#{@subdomain}-private" and 
+            ASF::Committee.list.map(&:name).include? @subdomain
             errors << "Invalid pmc: #{subdomain}"
           end
         end

Reply via email to