summaryrefslogtreecommitdiff
path: root/httemplate/misc/delete-radius_group.html
blob: 217b1053b676af168b8675959ac470879d44d9cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
% if ( $error ) {
%   errorpage($error);
% } else {
<% $cgi->redirect($p.'browse/radius_group.html') %>
% }
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');

my ($query) = $cgi->keywords;
$query =~ /^(\d+)$/ or die "Illegal groupnum";
my $group = FS::radius_group->by_key($1);
my $error = $group->delete;

</%init>