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:
parent
f08401d7ad
commit
9c7fdc9c84
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue