bugfix - don't allow deletion of authority records from OPAC

Because of some copy-and-paste work, it was possible to
construct an OPAC URL that would attempt to call DelAuthority
on a selected authority record.  This is perhaps taking
patron contributations to library metadata a bit too far.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Galen Charlton 2008-06-05 12:26:39 -05:00 committed by Joshua Ferraro
parent f08401d7ad
commit 9c7fdc9c84
1 changed files with 0 additions and 18 deletions

View File

@ -145,24 +145,6 @@ if ( $op eq "do_search" ) {
);
}
elsif ( $op eq "delete" ) {
&DelAuthority( $authid, 1 );
( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "authorities/authorities-home.tmpl",
query => $query,
type => 'intranet',
authnotrequired => 0,
flagsrequired => { catalogue => 1 },
debug => 1,
}
);
# $template->param("statements" => \@statements,
# "nbstatements" => $nbstatements);
}
elsif ( $op eq "AddStatement" ) {
( $template, $loggedinuser, $cookie ) = get_template_and_user(