diff options
author | ivan <ivan> | 2009-12-14 07:52:10 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-12-14 07:52:10 +0000 |
commit | c9a3e58a25b78d0f31480843bdf3fbf55d50ebe3 (patch) | |
tree | c88d46183222f24b732737d70a1b6d6ea3f90d3a /FS/FS/svc_acct.pm | |
parent | 00c0f473f6b8909ca028e24cbacac6e72fa468ee (diff) |
use a global config too
Diffstat (limited to 'FS/FS/svc_acct.pm')
-rw-r--r-- | FS/FS/svc_acct.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index 3e7ab92..7f65b41 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -1907,14 +1907,14 @@ sub _op_overlimit { my $cust_pkg = $self->cust_svc->cust_pkg; - my $agent_overlimit = + my $conf_overlimit = $cust_pkg ? $conf->config('overlimit_groups', $cust_pkg->cust_main->agentnum ) - : ''; + : $conf->config('overlimit_groups'); foreach my $part_export ( $self->cust_svc->part_svc->part_export ) { - my $groups = $agent_overlimit || $part_export->option('overlimit_groups'); + my $groups = $conf_overlimit || $part_export->option('overlimit_groups'); next unless $groups; my $gref = &{ $self->_fieldhandlers->{'usergroup'} }( $self, $groups ); |