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 <paul.poulain@biblibre.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
0ba9aab76b
commit
7a587112f0
2 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue