1 % die "you don't have the 'Configuration' access right"
2 % unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
4 % my($query) = $cgi->keywords;
5 % $query =~ /^(\d+)$/ || die "Illegal agentgatewaynum";
6 % my $agentgatewaynum = $1;
8 % my $agent_payment_gateway = qsearchs('agent_payment_gateway', {
9 % 'agentgatewaynum' => $agentgatewaynum,
12 % my $error = $agent_payment_gateway->delete;
13 % errorpage($error) if $error;
15 % print $cgi->redirect($p. "browse/agent.cgi");