Lines 464-470
sub ShelfPossibleAction {
Link Here
|
464 |
$sth->execute($user, $shelfnumber); |
464 |
$sth->execute($user, $shelfnumber); |
465 |
my $shelf= $sth->fetchrow_hashref; |
465 |
my $shelf= $sth->fetchrow_hashref; |
466 |
|
466 |
|
467 |
return 0 unless $shelf && ($shelf->{category}==2 || $shelf->{owner}==$user || $shelf->{borrowernumber}==$user); |
467 |
return 0 unless $shelf && ($shelf->{category}==2 || $shelf->{owner}==$user || ($user && $shelf->{borrowernumber}==$user)); |
468 |
if($action eq 'view') { |
468 |
if($action eq 'view') { |
469 |
#already handled in the above condition |
469 |
#already handled in the above condition |
470 |
return 1; |
470 |
return 1; |
471 |
- |
|
|