From b1a5b940cdb756ebc82db5b9abdd741f88049f81 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 18 Oct 2011 19:45:42 +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