Skip to content

Commit

Permalink
Fix parameter to list_rep_users function
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Aug 30, 2020
1 parent 163d03e commit 9b3273e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ sub mailbox_modify
$suser->{'user'} = $un;
&htaccess_htpasswd::modify_user($suser);
foreach my $r (&list_reps($dom)) {
my @rusers = &list_rep_users($dom, $r->{'rep'});
my @rusers = &list_rep_users($dom, $r);
my ($ruser) = grep { $_->{'user'} eq $oun } @rusers;
if ($ruser) {
$ruser->{'user'} = $un;
Expand Down Expand Up @@ -696,7 +696,7 @@ sub mailbox_delete

# Remove from all repositories
foreach my $r (&list_reps($dom)) {
my @rusers = &list_rep_users($dom, $r->{'rep'});
my @rusers = &list_rep_users($dom, $r);
my ($ruser) = grep { $_->{'user'} eq $un } @rusers;
my @newrusers = grep { $_ ne $ruser } @rusers;
if (@newrusers != @rusers) {
Expand Down

0 comments on commit 9b3273e

Please sign in to comment.