https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24841
Bug ID: 24841
Summary: REST API should check if patron is restricted/debarred
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: REST API
Assignee: [email protected]
Reporter: [email protected]
Bug 17247 "ILS-DI HoldTitle and HoldItem should check if patron is restricted"
adds checks to see if the patron is restricted before a hold is placed. These
checks are added to C4::ILSDI::Services::HoldItem() and
C4::ILSDI::Services::HoldTitle().
As far as I can tell, the same checks are missing from the REST API,
specifically for "POST /api/v1/holds".
Koha::REST::V1::Holds::add() does call C4::Reserves::CanItemBeReserved() and
C4::Reserves::CanBookBeReserved(), but as far as I can tell, those subs do not
check if the patron in question is debarred.
Am I missing something or is this a bug?
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/