From 8cacde15016f8edf7f71a7b25f2b398dc7d6d4ea Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 18 Oct 2011 19:45:41 +0000 Subject: [PATCH] pull RADIUS groups in new-style so existing groups get removed on suspensions, hopefully the final fix for RADIUS groups suspension, RT#14398 --- FS/FS/part_export/sqlradius.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FS/FS/part_export/sqlradius.pm b/FS/FS/part_export/sqlradius.pm index 8af53abcd..c51429de2 100644 --- a/FS/FS/part_export/sqlradius.pm +++ b/FS/FS/part_export/sqlradius.pm @@ -268,7 +268,7 @@ sub _export_suspend { $self->sqlreplace_usergroups( $new->svcnum, $self->export_username($new), '', - $svc_acct->usergroup, + [ $svc_acct->radius_groups ], \@newgroups, ); if ( $error ) { @@ -307,7 +307,7 @@ sub _export_unsuspend { $self->export_username($svc_acct), '', \@oldgroups, - $svc_acct->usergroup, + [ $svc_acct->radius_groups ], ); if ( $error ) { $dbh->rollback if $oldAutoCommit; -- 2.11.0