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

--- Comment #11 from David Nind <[email protected]> ---
Created attachment 212435
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212435&action=edit
Bug 33711: (follow-up) Refer to other patrons by id only

CanBookBeIssued returns the name and cardnumber of the patron the item
is checked out to (issued_*) or on hold for (res*). The availability
payloads passed them on, next to the patron_id, without checking if the
user is allowed to see that patron (library groups 'Hide patron info',
IndependentBranches). The staff routes exposed them through the API.

This patch makes the issued_to_another and hold payloads carry the
patron_id only, as the API definition already described: callers fetch
or embed the patrons, so the information the user is not allowed to see
is redacted.

Test plan:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ restart_all
  k$ prove t/db_dependent/Koha/Item/Availability/Checkout.t \
           t/db_dependent/api/v1/checkouts.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Assisted-by: Opus 5.5 (Anthropic)
Signed-off-by: David Nind <[email protected]>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
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/

Reply via email to