remove payment deletion, RT#37908
[freeside.git] / httemplate / misc / delete-router.html
1 % if ( $error ) {
2 %   errorpage($error);
3 % } else {
4 <% $cgi->redirect("${p}browse/router.cgi") %>
5 % }
6 <%init>
7
8 die "access denied"
9   unless $FS::CurrentUser::CurrentUser->access_right('Broadband configuration')
10   || $FS::CurrentUser::CurrentUser->access_right('Broadband global configuration');
11
12 my($query) = $cgi->keywords;
13 $query =~ /^(\d+)$/ || die "Illegal routernum";
14 my $routernum = $1;
15
16 my $router = qsearchs('router',{'routernum'=>$routernum});
17 my $error = $router->delete;
18
19 </%init>