From f0722309a975fe7fea6febf2ef591b272aaf6a4f Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 14 Feb 2011 15:23:07 -0500 Subject: [PATCH] Fix for Bug 4853 - Rights needed to renew a document Content-Type: text/plain; charset="utf-8" Correcting check for circulation permission. Also updating updateitem.pl (for setting lost and damaged statuses) with circulate permissions. --- catalogue/updateitem.pl | 2 +- reserve/renewscript.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/catalogue/updateitem.pl b/catalogue/updateitem.pl index 01a1605..e8ce20d 100755 --- a/catalogue/updateitem.pl +++ b/catalogue/updateitem.pl @@ -31,7 +31,7 @@ use C4::Reserves; my $cgi= new CGI; -my ($loggedinuser, $cookie, $sessionID) = checkauth($cgi, 0, {circulate => 1}, 'intranet'); +my ($loggedinuser, $cookie, $sessionID) = checkauth($cgi, 0, {circulate => 'circulate_remaining_permissions'}, 'intranet'); my $biblionumber=$cgi->param('biblionumber'); my $itemnumber=$cgi->param('itemnumber'); diff --git a/reserve/renewscript.pl b/reserve/renewscript.pl index ad746c9..f4c7fb4 100755 --- a/reserve/renewscript.pl +++ b/reserve/renewscript.pl @@ -39,7 +39,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( query => $input, type => "intranet", authnotrequired => 0, - flagsrequired => { circulate => 1 }, + flagsrequired => { circulate => 'circulate_remaining_permissions' }, debug => 0, } ); -- 1.7.3