Bug 12701 - OPAC reading history still accessible by URL if turned OFF
authorOwen Leonard <oleonard@myacpl.org>
Tue, 18 Nov 2014 15:42:32 +0000 (10:42 -0500)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 20 Nov 2014 00:39:32 +0000 (21:39 -0300)
commit6b432853f605647adbfebdf3afa053ad011bcbad
tree13b7528fc80a5e63c61e97231c6b369acad310f1
parente47245607342fecdd1719194aa46533d236c42f5
Bug 12701 - OPAC reading history still accessible by URL if turned OFF

If the opacreadinghistory system preference is turned off it is still
possible to navigate directly to the OPAC reading history page if you
know the URL. This patch adapts the fix for Bug 10595 (OpacTopissue page
still accessible when system preference is turned off) for
opac-readingrecord.pl

To test, log in to the OPAC and test the following conditions:

- With opacreadinghistory, navigating directly to
  /cgi-bin/koha/opac-readingrecord.pl should trigger a 404 error.

- With opacreadinghistory turned on there should be a working link to
  "your reading history" in the left-hand sidebar menu.

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described and passes tests.

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