projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
140fba9
)
pull RADIUS groups in new-style so existing groups get removed on suspensions, hopefu...
author
ivan
<ivan>
Tue, 18 Oct 2011 19:45:41 +0000
(19:45 +0000)
committer
ivan
<ivan>
Tue, 18 Oct 2011 19:45:41 +0000
(19:45 +0000)
FS/FS/part_export/sqlradius.pm
patch
|
blob
|
history
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),
'',
-
$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;