diff options
author | ivan <ivan> | 2009-12-14 07:52:08 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-12-14 07:52:08 +0000 |
commit | 557a6bdc1302aa7addd313327dcf62bbc0533429 (patch) | |
tree | 2a0e811ecc75ca05e00df722de3cbc7c3f88648c /FS | |
parent | 65956c8ec4f5c898b1412f7f0e68495894b6c7e6 (diff) |
use a global config too
Diffstat (limited to 'FS')
-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 53b9fd682..649a78347 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -2014,14 +2014,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 ); |