]> git.koha-community.org Git - koha.git/commit
Bug 13917: OPAC: Putting holds still possible by URL even if turned off by system...
authorMarc Véron <veron@veron.ch>
Thu, 26 Mar 2015 14:04:07 +0000 (15:04 +0100)
committerChris Cormack <chris@bigballofwax.co.nz>
Wed, 22 Apr 2015 05:43:54 +0000 (17:43 +1200)
commit40ad305c8e2014aaf832d44f0c5f5229ad979818
tree865191b8e94cacd5ef3c2d9b6de3af6e8ccab0d6
parentfed0dfbd83efc3146d02f2ee120d266f184083c2
Bug 13917: OPAC: Putting holds still possible by URL even if turned off by system preference

To test:

1)
Prepare an URL that put's a hold in OPAC (see comment #1), e.g.
[YOUR SERVER]/cgi-bin/koha/opac-reserve.pl?biblionumbers=1

2)
Set system preference 'RequestOnOpac' to 'Don't allow patrons to place holds on items from the OPAC.'

3)
Go diectly to this URL.
Result: The page displays to confirm hold (wrong)

4)
Apply patch

5)
Repeat step 3
Result: Redirect to 404 page (OK)

6)
Set system preference to "Allow"

7)
Repeat step 3
Result: The page displays to confirm hold (OK), like it would be from link in OPAC.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 20dc9ce5a1255fa7722e23b9300de19ec35eda16)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
opac/opac-reserve.pl