Skip to content

Commit

Permalink
Merge pull request #543 from ikedas/wwsympa_cached_admins by ikedas
Browse files Browse the repository at this point in the history
WWSympa: Owners/moderators in list panel aren't updated
  • Loading branch information
ikedas authored Jan 31, 2019
2 parents d182a6f + ac6ed04 commit 05e8ce8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cgi/wwsympa.fcgi.in
Original file line number Diff line number Diff line change
Expand Up @@ -2853,7 +2853,9 @@ sub check_param_out {

# Owners and editors
foreach my $role (qw(owner editor)) {
foreach my $u ($list->get_admins($role)) {
my @users =
grep {$_->{role} eq $role} @{$list->get_current_admins || []};
foreach my $u (@users) {
next unless $u->{'email'};

my ($local, $domain) = split /\@/, $u->{'email'};
Expand Down

0 comments on commit 05e8ce8

Please sign in to comment.