From 7a587112f0417f152b2c95f81cb5e0f82df91c73 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 1 Mar 2011 21:19:16 +0100 Subject: [PATCH] Fix for Bug 4853 - Rights needed to renew a document Correcting check for circulation permission. Also updating updateitem.pl (for setting lost and damaged statuses) with circulate permissions. Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- 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 01a16054ce..e8ce20d5d0 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 ad746c98dc..f4c7fb4125 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, } ); -- 2.39.5