[Koha-bugs] [Bug 20256] Add ability to limit editing of items to home library
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Apr 24 17:03:11 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20256
--- Comment #31 from Kyle M Hall <kyle at 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.
More information about the Koha-bugs
mailing list