[Koha-bugs] [Bug 10595] OpacTopissue page still accessible when system preference is turned off

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jul 18 13:52:34 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10595

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #19703|0                           |1
        is obsolete|                            |

--- Comment #4 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 19758
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=19758&action=edit
Bug 10595 - OpacTopissue page still accessible when system preference is turned
off

When the syspref is turned off, the link is hidden but the page is still
accessible. This patch checks the syspref and redirects to 404 if it is
disabled.

Test plan:

Before applying the patch

Enable OpacTopissue
  Observe there is a link to opac-topissues.pl next to Advanced search etc.
  Follow that link, observe that opac-topissues.pl is loading
Disable OpacTopissue
  Observe the link is gone
  Manually open /koha/opac-topissues.pl and check that it is loading even
though the feature is disabled

Apply patch

(OpacTopissue still diabled)
Manually open /koha/opac-topissues.pl and observe that you are being redirected
to the 404 page.
Enable OpacTopissue
  Follow the link or manuall open opac-topissues.pl and check that it is
working

Signoff the patch.

Signed-off-by: Srdjan <srdjan at catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list