11 my $allow = $itkaclcommon::cgi->param('allow');
12 my $entry = $itkaclcommon::cgi->param('entry');
13 my $entity = $itkaclcommon::cgi->param('entity');
14 my $entity_type = $itkaclcommon::cgi->param('entity_type');
15 my $comment = $itkaclcommon::cgi->param('comment');
17 $itkaclcommon::dbh->do('INSERT INTO aclentries (allow,object,entity_type,entity,comment) VALUES (?,?,?,?,?)', undef,
18 $allow, $entry, $entity_type, $entity, $comment)
19 or die "Couldn't add new ACL entry";
21 # Let sync-itkacl know there's updates
22 utime(time(), time(), '/etc/itkacl/updated');
24 print $itkaclcommon::cgi->redirect("view.pl?entry=$entry");