blob: 83a4b682381f6bb3d575bc544d4feae2d531bfa9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
% if ( $error ) {
% errorpage($error);
% } else {
<% $cgi->redirect("${p}browse/addr_block.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 blocknum";
my $blocknum = $1;
my $addr_block = qsearchs('addr_block',{'blocknum'=>$blocknum});
my $error = $addr_block->delete;
</%init>
|