[Koha-patches] [PATCH] Fix for Bug 4853 - Rights needed to renew a document

paul.poulain at biblibre.com paul.poulain at biblibre.com
Tue Mar 1 21:19:16 CET 2011


From: Owen Leonard <oleonard at myacpl.org>

Correcting check for circulation permission. Also updating
updateitem.pl (for setting lost and damaged statuses) with
circulate permissions.

Signed-off-by: Paul Poulain <paul.poulain at biblibre.com>
---
 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.1



More information about the Koha-patches mailing list