diff options
author | ivan <ivan> | 2011-10-18 19:45:41 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-10-18 19:45:41 +0000 |
commit | 8cacde15016f8edf7f71a7b25f2b398dc7d6d4ea (patch) | |
tree | 7b4d19d472de7bf4df5b7d877b6e26f64aafc0cf | |
parent | 140fba9bbf23d8b18ee066229bbabb5286aa9bb4 (diff) |
pull RADIUS groups in new-style so existing groups get removed on suspensions, hopefully the final fix for RADIUS groups suspension, RT#14398
-rw-r--r-- | FS/FS/part_export/sqlradius.pm | 4 |
1 files 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; |