11 my $entry = $itkaclcommon::cgi->param('entry');
13 # Find the parent node before we delete this (FIXME: this will fail badly
15 my $ref = $itkaclcommon::dbh->selectrow_hashref('SELECT parent FROM objects WHERE id=?',
18 $itkaclcommon::dbh->do('DELETE FROM objects WHERE id=?', undef, $entry)
19 or die "Couldn't delete object";
21 # Let sync-itkacl know there's updates
22 utime(time(), time(), '/etc/itkacl/updated');
24 # Redirect to the parent
25 print $itkaclcommon::cgi->redirect("view.pl?entry=$ref->{'parent'}");