https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20256 --- Comment #31 from Kyle M Hall <kyle@bywatersolutions.com> --- Comment on attachment 88546 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88546 Bug 20256: Use new methods Review of attachment 88546: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=20256&attachment=88546) ----------------------------------------------------------------- ::: C4/Items.pm @@ +1746,4 @@
$status = "book_on_loan"; } elsif ( defined C4::Context->userenv + and !Koha::Patrons->find( C4::Context->userenv->{number} )->can_edit_item( $item ) )
cli scripts have no userenv, so this is cli safe. ::: catalogue/detail.pl @@ +340,4 @@
$item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} ); }
+ $item->{cannot_be_edited} = !$patron->can_edit_item( $item_object );
Fair enough. I'll submit a followup for fix that! -- You are receiving this mail because: You are watching all bug changes.