pull RADIUS groups in new-style so existing groups get removed on suspensions, hopefu...
authorivan <ivan>
Tue, 18 Oct 2011 19:45:41 +0000 (19:45 +0000)
committerivan <ivan>
Tue, 18 Oct 2011 19:45:41 +0000 (19:45 +0000)
FS/FS/part_export/sqlradius.pm

index 8af53ab..c51429d 100644 (file)
@@ -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;