diff options
author | levinse <levinse> | 2011-06-22 23:39:37 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-06-22 23:39:37 +0000 |
commit | 2174469c067129252ed59918002a629bf770fdab (patch) | |
tree | 96b7ac2826bcf350609f0da267e8ad5f0476827a /httemplate/misc | |
parent | a9a395476864243f501bdce729294a18097159ff (diff) |
add router and addr_block delete features, RT13197
Diffstat (limited to 'httemplate/misc')
-rw-r--r-- | httemplate/misc/delete-router.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/httemplate/misc/delete-router.html b/httemplate/misc/delete-router.html new file mode 100644 index 000000000..eb1754b4a --- /dev/null +++ b/httemplate/misc/delete-router.html @@ -0,0 +1,19 @@ +% if ( $error ) { +% errorpage($error); +% } else { +<% $cgi->redirect("${p}browse/router.cgi") %> +% } +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Broadband configuration') + || $FS::CurrentUser::CurrentUser->access_right('Broadband global configuration'); + +my($query) = $cgi->keywords; +$query =~ /^(\d+)$/ || die "Illegal routernum"; +my $routernum = $1; + +my $router = qsearchs('router',{'routernum'=>$routernum}); +my $error = $router->delete; + +</%init> |