This is an automated email from the ASF dual-hosted git repository.
rubys 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 2588226 Fix error seen in error logs:
2588226 is described below
commit 2588226da9b2350f014546ba833e7b2e90506918
Author: Sam Ruby <[email protected]>
AuthorDate: Thu Oct 31 10:30:15 2019 -0400
Fix error seen in error logs:
App 13229 output: _ERROR #<NoMethodError: undefined method `members' for
#<ASF::Committee:0x000000007fe1a8>>
App 13229 output: _WARN
/x1/srv/whimsy/www/roster/views/actions/authgroup.json.rb:36:in `_evaluate'
App 13229 output: _WARN /x1/srv/whimsy/www/roster/main.rb:248:in `block in
<top (required)>'
---
www/roster/views/actions/authgroup.json.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/roster/views/actions/authgroup.json.rb
b/www/roster/views/actions/authgroup.json.rb
index b86356a..366fd0b 100644
--- a/www/roster/views/actions/authgroup.json.rb
+++ b/www/roster/views/actions/authgroup.json.rb
@@ -33,7 +33,7 @@ if env.password
# replace with sending to the private@pmc list if this is a pmc owned group
pmc = ASF::Committee.find(group.id.split('-').first)
- unless pmc.members.empty?
+ unless pmc.owners.empty?
to = pmc.mail_list
to = "private@#{to}.apache.org" unless to.include? '@'
end