[Koha-bugs] [Bug 29523] Add a way to prevent embedding objects that should not be allowed

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 28 18:04:30 CEST 2022


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

--- Comment #57 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 136692
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=136692&action=edit
Bug 29523: Remove the FIXME

This patch works through the unit tests and existing code to allow
removal of the FIXME I introduced earlier in the patchset.

We now require the current user object to be passed into the to_api and
subsequent is_accessible method. This is a change to the method
signature for the Koha::Patron case and results in use needing to add
the user parameter in some unexpected locations (like update and add
methods as they use to_api internally for the response).

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


More information about the Koha-bugs mailing list