This is an automated email from the ASF dual-hosted git repository. rubys pushed a commit to branch master in repository https://git-dual.apache.org/repos/asf/whimsy.git
commit 48d5cc251d1c514397acae40d24d02beff5c4245 Author: Sam Ruby <[email protected]> AuthorDate: Wed Aug 3 20:03:47 2016 -0400 authentication; cleanup --- www/officers/acreq.cgi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/www/officers/acreq.cgi b/www/officers/acreq.cgi index 1831b87..c7ad748 100755 --- a/www/officers/acreq.cgi +++ b/www/officers/acreq.cgi @@ -18,9 +18,13 @@ require 'whimsy/asf' require 'mail' require 'date' require 'open3' -require 'pathname' -require 'rexml/document' -require 'net/http' + +user = ASF::Person.new($USER) +unless user.asf_member? or ASF.pmc_chairs.include? user + print "Status: 401 Unauthorized\r\n" + print "WWW-Authenticate: Basic realm=\"ASF Members and Officers\"\r\n\r\n" + exit +end # List of unix groups that do NOT correspond to PMCs NON_PMC_UNIX_GROUPS = %w( -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
