diff options
author | ivan <ivan> | 2011-10-18 19:45:42 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-10-18 19:45:42 +0000 |
commit | b1a5b940cdb756ebc82db5b9abdd741f88049f81 (patch) | |
tree | 396ed1ec1beac5ac113d65b26a8b93fa068f3d58 | |
parent | 33f519648c3f64b1122411a445c6a7ae9fcfc11f (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; |