Merge branch 'bug_9953' into 3.12-master
This commit is contained in:
commit
44eba02dd3
5 changed files with 10 additions and 13 deletions
|
@ -36,6 +36,7 @@ use C4::Items;
|
|||
use C4::Members::Attributes qw(GetBorrowerAttributes);
|
||||
|
||||
my $input=new CGI;
|
||||
my $flagsrequired = { borrowers => 1, updatecharges => 1 };
|
||||
|
||||
my $borrowernumber=$input->param('borrowernumber');
|
||||
|
||||
|
@ -44,7 +45,7 @@ my $data=GetMember('borrowernumber' => $borrowernumber);
|
|||
my $add=$input->param('add');
|
||||
|
||||
if ($add){
|
||||
if(checkauth($input)) {
|
||||
if ( checkauth( $input, 0, $flagsrequired, 'intranet' ) ) {
|
||||
my $barcode = $input->param('barcode');
|
||||
my $itemnum;
|
||||
if ($barcode) {
|
||||
|
@ -64,7 +65,7 @@ if ($add){
|
|||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
flagsrequired => {borrowers => 1, updatecharges => 1},
|
||||
flagsrequired => $flagsrequired,
|
||||
debug => 1,
|
||||
});
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@ use C4::Branch;
|
|||
use C4::Members::Attributes qw(GetBorrowerAttributes);
|
||||
|
||||
my $input=new CGI;
|
||||
my $flagsrequired = { borrowers => 1 };
|
||||
|
||||
my $borrowernumber=$input->param('borrowernumber');
|
||||
|
||||
|
@ -43,7 +44,7 @@ my $borrowernumber=$input->param('borrowernumber');
|
|||
my $data=GetMember('borrowernumber'=>$borrowernumber);
|
||||
my $add=$input->param('add');
|
||||
if ($add){
|
||||
if(checkauth($input)) {
|
||||
if ( checkauth( $input, 0, $flagsrequired, 'intranet' ) ) {
|
||||
# print $input->header;
|
||||
my $barcode=$input->param('barcode');
|
||||
my $itemnum;
|
||||
|
@ -61,7 +62,7 @@ if ($add){
|
|||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
flagsrequired => { borrowers => 1 },
|
||||
flagsrequired => $flagsrequired,
|
||||
debug => 1,
|
||||
}
|
||||
);
|
||||
|
|
|
@ -35,7 +35,7 @@ my ($template, $loggedinuser, $cookie, $staffflags)
|
|||
my $flagsrequired;
|
||||
$flagsrequired->{borrowers}=1;
|
||||
|
||||
#my ($loggedinuser, $cookie, $sessionID) = checkauth($input, 0, $flagsrequired);
|
||||
#my ($loggedinuser, $cookie, $sessionID) = checkauth($input, 0, $flagsrequired, 'intranet');
|
||||
|
||||
my $member=$input->param('member');
|
||||
my $cardnumber = $input->param('cardnumber');
|
||||
|
|
|
@ -36,10 +36,7 @@ use C4::Auth;
|
|||
|
||||
my $input = new CGI;
|
||||
|
||||
my $flagsrequired;
|
||||
$flagsrequired->{borrowers} = 1;
|
||||
my ( $loggedinuser, $cookie, $sessionID ) =
|
||||
checkauth( $input, 0, $flagsrequired );
|
||||
checkauth( $input, 0, { borrowers => 1 }, 'intranet' );
|
||||
|
||||
my $borrowernumber = $input->param('borrowernumber');
|
||||
|
||||
|
|
|
@ -34,9 +34,7 @@ use C4::Auth;
|
|||
|
||||
my $input = new CGI;
|
||||
|
||||
my $flagsrequired;
|
||||
$flagsrequired->{borrowers}=1;
|
||||
checkauth($input, 0, $flagsrequired);
|
||||
checkauth($input, 0, { borrowers => 1 }, 'intranet');
|
||||
|
||||
my $destination = $input->param("destination") || '';
|
||||
my $cardnumber = $input->param("cardnumber");
|
||||
|
|
Loading…
Reference in a new issue