]> git.koha-community.org Git - koha.git/commit
Bug 37392: (follow-up) Limit a borrower not in a group and fix tests main
authorNick Clemens <nick@bywatersolutions.com>
Fri, 1 Nov 2024 11:35:04 +0000 (11:35 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 1 Nov 2024 12:34:39 +0000 (09:34 -0300)
commitf05a8c839f7bd2c3f1da070b81701f0c4dc9d997
tree499a55f85e869f7b248b061f58db547a4339d5f2
parent9ea77b0c72782fbd0084093ab343566729d66882
Bug 37392: (follow-up) Limit a borrower not in a group and fix tests

The previous patches took into account all the groups for a patron, but missed the case where a patron
didn't have permission to see outside their library, and their library is not in a group.

Code updated and a test added.

Other tests adjusted to ensure the feature to limit patrons was set in those groups.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Patron.pm
t/db_dependent/ArticleRequests.t
t/db_dependent/Koha/Patrons.t
t/db_dependent/Koha/Reviews.t
t/db_dependent/Patron/Borrower_Discharge.t