Skip to content

Commit

Permalink
Add backport for sympa-community#1550.
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Dec 19, 2022
1 parent 39e3006 commit 51f3e06
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions src/cgi/wwsympa.fcgi.in
Original file line number Diff line number Diff line change
Expand Up @@ -4710,17 +4710,20 @@ sub _review_user {
; #FIXME: Update user?
} elsif ($list->add_list_admin($role, $user)) {
# Notify the new list owner/editor
Sympa::send_notify_to_user(
$list,
'added_as_listadmin',
$email,
{ admin_type => $role,
delegator => $param->{'user'}{'email'}
}
);
Sympa::WWW::Report::notice_report_web('user_notified',
{'notified_user' => $email},
$param->{'action'});
if ($user->{'reception'} ne 'nomail') {
Sympa::send_notify_to_user(
$list,
'added_as_listadmin',
$email,
{ admin_type => $role,
delegator => $param->{'user'}{'email'}
}
);

Sympa::WWW::Report::notice_report_web('user_notified',
{'notified_user' => $email},
$param->{'action'});
}
} else {
#FIXME: Report error
}
Expand Down

0 comments on commit 51f3e06

Please sign in to comment.