From 04e75e4bfa7f0ad84d6faf8dc5e6d344a6f947a0 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 21 Apr 2011 13:16:19 +0000 Subject: [PATCH] check user 'active' field in SIP charge_ok (and dependent) calls git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_1@20269 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm index 607dce7530..c628820a2d 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm @@ -269,7 +269,10 @@ sub language { sub charge_ok { my $self = shift; my $u = $self->{user}; - return (($u->barred eq 'f') and ($u->card->active eq 't')); + return + $u->barred eq 'f' and + $u->active eq 't' and + $u->card->active eq 't'; } # How much more detail do we need to check here? -- 2.11.0