https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42405
--- Comment #12 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 206753 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=206753&action=edit Bug 42405: (follow-up) Use objects->find_rs in single cover image controllers This patch replaces direct Koha::Objects->find() calls with $c->objects->find_rs() in the delete, add_biblio, and add_item controllers, aligning them with the pattern used by other REST controllers (RecordSources, Transfers, Bookings). The goal is to make these lookups restrictions aware: routing them through the objects helper means they will honour access restrictions such as IndependentBranches automatically if and when a search_limited equivalent is implemented for this resultset, without further changes to these controllers. No functional changes - behavior preserved. Test plan: 1. Apply patch 2. Run: $ ktd --shell k$ prove t/db_dependent/api/v1/cover_images_single.t t/db_dependent/api/v1/cover_images.t => SUCCESS: Tests pass! 3. Sign off :-D -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
