]> git.koha-community.org Git - koha.git/commit
Bug 16849: Move IsDebarred to Koha::Patron->is_debarred
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 4 Jul 2016 10:29:16 +0000 (11:29 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 15 Jul 2016 18:08:14 +0000 (18:08 +0000)
commite1e38896bb6a6cb5bcc9fd4b6fc129f143d7406a
tree27c3c0cadb9135acb2d051bcaa85f0ec029a21d5
parent81a9e7c88ee44fdfdd2f4f19b52150ce7176b1b7
Bug 16849: Move IsDebarred to Koha::Patron->is_debarred

In order to move IsMemberBlocked to Koha::Patron it makes sense to move
the code from Koha::Patron::Debarments::IsDebarred to
Koha::Patron->is_debarred.

Test plan:
1/ Add a restriction to a patron
2/ make sure he is not able to checkout items any more
3/ Make sure he cannot get a discharge
4/ Put a hold and make sure you get "Patron has restrictions"

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
13 files changed:
C4/Circulation.pm
C4/Members.pm
Koha/Patron.pm
Koha/Patron/Debarments.pm
Koha/Patron/Discharge.pm
Koha/Template/Plugin/Borrowers.pm
circ/circulation.pl
members/moremember.pl
opac/opac-reserve.pl
opac/opac-user.pl
reserve/request.pl
t/db_dependent/Patron/Borrower_Debarments.t
t/db_dependent/Patron/Borrower_Discharge.t