]> git.koha-community.org Git - koha.git/commit
Bug 18349: SCO - Do not trust the confirmed flag
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 29 Mar 2017 21:25:40 +0000 (18:25 -0300)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 21 Apr 2017 10:53:12 +0000 (12:53 +0200)
commit9ac3ec0fd1a487859c35f2b61f2074b0c559ab50
treecd72e94840cb08309f6e4e0bc0220b2cde551d56
parent67610fe524aa2eaba5b628751a4f16d019053c0c
Bug 18349: SCO - Do not trust the confirmed flag

The "confirmed" flag is used to know if that user confirmed a situation
that needs a confirmation.
But if the issue/renew is impossible the CanBookBeIssued and the
'impossible flags' should be checked.

Otherwise a patron can checkout and renew bypassing the circulation
rules (Understand 'no limit' here...)

Test plan:
Want to renew?
Checkin $barcode, then
/cgi-bin/koha/sco/sco-main.pl?patronid=$cardnumber&barcode=$barcode&confirmed=1&op=checkout

Want to bypass the checkin?
Same url...

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 85bd15a83ffdab0c2e28eae54e50ce4dee9e608b)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
(cherry picked from commit dbee200409d738fcf7c4fdcfb2cd19f5d6d36c04)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
opac/sco/sco-main.pl