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 8abd8f1b Allow renomination of Emeritus
8abd8f1b is described below

commit 8abd8f1baffe32c6c6bd6a0ff20fbcd306060ee1
Author: Sebb <s...@apache.org>
AuthorDate: Fri Feb 9 17:26:13 2024 +0000

    Allow renomination of Emeritus
---
 www/members/member_nominations.cgi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/members/member_nominations.cgi 
b/www/members/member_nominations.cgi
index 7898f946..0a24db5d 100755
--- a/www/members/member_nominations.cgi
+++ b/www/members/member_nominations.cgi
@@ -41,7 +41,8 @@ def validate_form(formdata: {})
   uid = formdata['availid']
   chk = ASF::Person[uid]&.asf_member?
   chk.nil? and return "Invalid availid: #{uid}"
-  chk and return "Already a member: #{uid}"
+  # Allow renomination of Emeritus
+  chk && !chk.to_s.start_with?('Emeritus') and return "Already a member: 
#{uid}"
   already = ASF::MemberFiles.member_nominees
   return "Already nominated: #{uid} by #{already[uid]['Nominated by']}" if 
already.include? uid
   return 'OK'

Reply via email to