Bug 12873 - Reserve can be cancelled by any logged in user
authorRafal Kopaczka <rkk0@poczta.onet.pl>
Thu, 4 Sep 2014 14:40:33 +0000 (16:40 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 23 Sep 2014 23:36:23 +0000 (20:36 -0300)
commit6a98db50fc56be0d611170507c2ced445b894970
tree6beded1f26c1f43b69d5bf247c94f010bfed3e37
parent6246f2c70049baf86bc942c2473793c83057a64f
Bug 12873 - Reserve can be cancelled by any logged in user

It is possible to cancel reservations through simply running opac-modreserve.pl with existing reserve_id number. This may provide remove even all reservations from system. The only limitation is that user have to be logged in. Simplest solution is to check whether reserve belongs to user or not.

Test plan:
1. Create reserves by 2 different users, and get their ID's
2. Before patch, hold may by cancelled by anyone who run site:
http://example.com/cgi-bin/koha/opac-modrequest.pl?reserve_id=XXX
3. After patch hold may by cancelled only by user whose reserve is.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
opac/opac-modrequest.pl