projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pull RADIUS groups in new-style so existing groups get removed on suspensions, hopefu...
[freeside.git]
/
FS
/
FS
/
part_export
/
sqlradius.pm
diff --git
a/FS/FS/part_export/sqlradius.pm
b/FS/FS/part_export/sqlradius.pm
index
8af53ab
..
c51429d
100644
(file)
--- 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),
'',
$self->sqlreplace_usergroups( $new->svcnum,
$self->export_username($new),
'',
-
$svc_acct->usergroup
,
+
[ $svc_acct->radius_groups ]
,
\@newgroups,
);
if ( $error ) {
\@newgroups,
);
if ( $error ) {
@@
-307,7
+307,7
@@
sub _export_unsuspend {
$self->export_username($svc_acct),
'',
\@oldgroups,
$self->export_username($svc_acct),
'',
\@oldgroups,
-
$svc_acct->usergroup
,
+
[ $svc_acct->radius_groups ]
,
);
if ( $error ) {
$dbh->rollback if $oldAutoCommit;
);
if ( $error ) {
$dbh->rollback if $oldAutoCommit;