[freeside-commits] freeside/httemplate/misc delete-dsl_device.html, 1.1, 1.2
Ivan,,,
ivan at wavetail.420.am
Thu Oct 6 13:44:20 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv25965/httemplate/misc
Added Files:
delete-dsl_device.html
Log Message:
add dsl_device to track mac addresses, RT#13656
--- NEW FILE: delete-dsl_device.html ---
% if ( $error ) {
% errorpage($error);
% } else {
<% $cgi->redirect($p. "view/svc_dsl.cgi?". $svcnum) %>
% }
<%init>
# :/ needs agent-virt so you can't futz with arbitrary devices
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific?
#untaint devicenum
my($query) = $cgi->keywords;
$query =~ /^(\d+)$/ || die "Illegal devicenum";
my $devicenum = $1;
my $dsl_device = qsearchs('dsl_device', { 'devicenum' => $devicenum } );
my $svcnum = $dsl_device->svcnum;
my $error = $dsl_device->delete;
</%init>
More information about the freeside-commits
mailing list