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 0c2f10f4 More descriptive name
0c2f10f4 is described below

commit 0c2f10f46be8b42f83687b28ca04f192ae9e2cd5
Author: Sebb <[email protected]>
AuthorDate: Wed Feb 8 16:38:21 2023 +0000

    More descriptive name
---
 lib/whimsy/asf/person.rb | 2 +-
 www/status/passenger.cgi | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/whimsy/asf/person.rb b/lib/whimsy/asf/person.rb
index 48fbc100..b308707f 100644
--- a/lib/whimsy/asf/person.rb
+++ b/lib/whimsy/asf/person.rb
@@ -271,7 +271,7 @@ module ASF
     # Returns <tt>true</tt> if this person is listed as an ASF member in
     # _either_ LDAP or <tt>members.txt</tt> or this person is listed as
     # an PMC chair in LDAP.
-    def asf_officer_or_member?
+    def asf_chair_or_member?
       asf_member? or ASF.pmc_chairs.include? self
     end
   end
diff --git a/www/status/passenger.cgi b/www/status/passenger.cgi
index 21bc6b8c..d4a4ac6c 100755
--- a/www/status/passenger.cgi
+++ b/www/status/passenger.cgi
@@ -77,7 +77,7 @@ _html do
         _pre app
 
         path = app[/\A(\/.*):/, 1]
-        if user.asf_officer_or_member?
+        if user.asf_chair_or_member?
           restart = File.join(path, "tmp/restart.txt") if path
           if restart and File.exist? restart
             if _.post? and @restart == restart

Reply via email to