whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curc...@apache.org
Subject [whimsy] branch master updated: Fix uncomment bug; thx: sebb
Date Wed, 22 May 2019 11:20:25 GMT
This is an automated email from the ASF dual-hosted git repository.

curcuru 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 6a73926  Fix uncomment bug; thx: sebb
6a73926 is described below

commit 6a7392621c459ac66a53a7b50cc4d25dee9a153a
Author: Shane Curcuru <asf@shanecurcuru.org>
AuthorDate: Wed May 22 07:20:17 2019 -0400

    Fix uncomment bug; thx: sebb
---
 www/board/list-traffic.cgi | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/www/board/list-traffic.cgi b/www/board/list-traffic.cgi
index a7a1279..f02119a 100755
--- a/www/board/list-traffic.cgi
+++ b/www/board/list-traffic.cgi
@@ -10,12 +10,12 @@ require 'whimsy/asf/agenda'
 require 'date'
 require 'mail'
 
-# 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 PMC chairs\"\r\n\r\n"
-#   exit
-# end
+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 PMC chairs\"\r\n\r\n"
+  exit
+end
 
 SRV_MAIL = '/srv/mail/board'
 DATE = 'date'


Mime
View raw message