[Koha-bugs] [Bug 20256] Add ability to limit editing of items to home library or library group

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 21 09:30:16 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20256

--- Comment #461 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
1530     my $branchcode =
1531         $ref eq 'Koha::Item' ? $item->homebranch
1532       : $ref eq 'HASH'       ? $item->{homebranch}
1533       : $ref eq q{}          ? $item
1534       :                        undef;

This reads bad, and introduce an incorrect pattern, can you have another look
at it please?

Why not simply having can_edit_items_from that takes the branchcode?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list