Bug 20256 introduced a pattern we are trying to avoid for a long time now (old patchset). It should be refactored and cleaned.
Created attachment 147397 [details] [review] Bug 33070: Remove use of can_edit_items Test Plan: 1) Apply this patch 2) prove t/db_dependent/Koha/Acquisition/Order.t 3) git grep "can_edit_item(" should return no results Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Created attachment 148325 [details] [review] Bug 33070: Remove use of can_edit_items Test Plan: 1) Apply this patch 2) prove t/db_dependent/Koha/Acquisition/Order.t 3) git grep "can_edit_item(" should return no results Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Pushed to master for 23.05. Nice work everyone, thanks!
Not backporting to stable as this is dependent on bug 20256 which has not been backported
*** Bug 34173 has been marked as a duplicate of this bug. ***