Bug 13107 - Members are restricted even if the debarment is ended - opac-user
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 17 Oct 2014 16:30:34 +0000 (18:30 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 19 Nov 2014 14:45:18 +0000 (11:45 -0300)
commitf7463f23207a25542ec05a44617844a4d1e1d067
tree048fc81179f7c5892e9b17f48ec9a9b815801097
parenta317f7d62f2d4f35cd83f26e9c02d8ba989e8e3a
Bug 13107 - Members are restricted even if the debarment is ended - opac-user

This is the same issue as bug 12134.

Test Plan:
1) Add a manual restriction to a patron with expiration date in the past.
2) Go on the OPAC and connect (opac-user.pl)
3) Note the warning message
    "Your account has been frozen until until XX/XX/XXXX ..."
4) Apply this patch
5) Repeat step 2
6) Note the warning message does not appear anymore

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described.

NOTE: If you set a debarment with date in the past in the GUI,
there will be no entry in borrowers.debarred and you won't be
able to see the problem. Set one with a date in the future and
then alter the date in borrower_debarments and borrowers.debarred.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
opac/opac-user.pl