4 <% $cgi->redirect($p. "browse/cgp_rule.html?svcnum=". $svcnum) %>
8 # :/ needs agent-virt so you can't futz with arbitrary rules
11 # unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service');
14 my($query) = $cgi->keywords;
15 $query =~ /^(\d+)$/ || die "Illegal rulenum";
18 my $cgp_rule = qsearchs('cgp_rule', { 'rulenum' => $rulenum } );
19 my $svcnum = $cgp_rule->svcnum;
21 my $error = $cgp_rule->delete;