From 9b3273e4f64a738aea981acf460a1954c37f7afd Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 30 Aug 2020 13:52:22 -0700 Subject: [PATCH] Fix parameter to list_rep_users function --- virtual_feature.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virtual_feature.pl b/virtual_feature.pl index aabda60..3bd5a0b 100755 --- a/virtual_feature.pl +++ b/virtual_feature.pl @@ -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; @@ -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) {