]> git.koha-community.org Git - koha.git/commit
Bug 32256: (follow-up) Use correct patron category
authorAleisha Amohia <aleishaamohia@hotmail.com>
Wed, 10 Apr 2024 00:58:30 +0000 (00:58 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Wed, 8 May 2024 16:23:53 +0000 (18:23 +0200)
commite9f387cfc3f209256c5239d2034e842851d1df2e
tree494899aefd72dc4009b4d718bd0b29d064c03ec6
parent297ad2bb6f1755182c3ca0149f54c245246f6cea
Bug 32256: (follow-up) Use correct patron category

This patch ensures we check the categorycode of the patron trying to issue the items is valid (based on BatchCheckoutsValidCategories), rather than the categorycode of the AutoSelfCheckAllowed patron.

To test:

1 - Enable BatchCheckouts, select nothing in BatchCheckoutsValidCategories
2 - confirm AutoSelfCheckAllowed is allowed and contains the username and password for the self_check user. Confirm self_check user is in category Staff
3 - log into SCO with a user in category Patron, confirm you can only check out 1 item at a time
4 - select Patron in BatchCheckoutsValidCategories
5 - log into SCO with your Patron user again, confirm you can check out multiple items at a time

Sponsored-by: Koha-US
Signed-off-by: Andrew Fuerste Henry <andrewfh@dubcolib.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Andrew Fuerste Henry <andrewfh@dubcolib.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
opac/sco/sco-main.pl