summaryrefslogtreecommitdiff
path: root/httemplate/misc/delete-cgp_rule.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/misc/delete-cgp_rule.html')
-rw-r--r--httemplate/misc/delete-cgp_rule.html23
1 files changed, 0 insertions, 23 deletions
diff --git a/httemplate/misc/delete-cgp_rule.html b/httemplate/misc/delete-cgp_rule.html
deleted file mode 100644
index 0415bc9dd..000000000
--- a/httemplate/misc/delete-cgp_rule.html
+++ /dev/null
@@ -1,23 +0,0 @@
-% if ( $error ) {
-% errorpage($error);
-% } else {
-<% $cgi->redirect($p. "browse/cgp_rule.html?svcnum=". $svcnum) %>
-% }
-<%init>
-
-# :/ needs agent-virt so you can't futz with arbitrary rules
-
-#die "access denied"
-# unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service');
-
-#untaint rulenum
-my($query) = $cgi->keywords;
-$query =~ /^(\d+)$/ || die "Illegal rulenum";
-my $rulenum = $1;
-
-my $cgp_rule = qsearchs('cgp_rule', { 'rulenum' => $rulenum } );
-my $svcnum = $cgp_rule->svcnum;
-
-my $error = $cgp_rule->delete;
-
-</%init>