From 0cf685da4343fa2f311c433a7dbb3685227b4dc7 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 14 Dec 2009 07:48:46 +0000 Subject: [PATCH] 1.7 has no per_agent config --- FS/FS/Conf.pm | 1 - FS/FS/svc_acct.pm | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 1bc5860b2..d4376c309 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -2247,7 +2247,6 @@ worry that config_items is freeside-specific and icky. 'section' => '', 'description' => 'RADIUS group (or comma-separated groups) to assign to svc_acct which has exceeded its bandwidth or time limit.', 'type' => 'text', - 'per_agent' => 1, }, { diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index fda6e3c46..7b139195f 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -1805,14 +1805,11 @@ sub _op_overlimit { my $cust_pkg = $self->cust_svc->cust_pkg; - my $agent_overlimit = - $cust_pkg - ? $conf->config('overlimit_groups', $cust_pkg->cust_main->agentnum ) - : ''; + my $conf_overlimit = $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 ); -- 2.11.0