[Koha-bugs] [Bug 15823] Can still access patron discharge slip without having the syspref on - Permissions breach

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 26 18:18:02 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15823

--- Comment #10 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Comment on attachment 50707
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50707
Bug 15823: Can still access patron discharge slip without having the syspref on

Review of attachment 50707:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=15823&attachment=50707)
-----------------------------------------------------------------

10/ Yes I see the message, but the discharge has been requested anyway.
You have to redirect to a 404 in case of opac-discharge.pl is called with the
op parameter set.

::: members/discharge.pl
@@ +55,5 @@
> +
> +unless ( C4::Context->preference('useDischarge') ) {
> +   print $input->redirect("/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber&nopermission=1");
> +   exit;
> +} else {

The else is not needed. You are exiting the script in case of the pref is on.

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


More information about the Koha-bugs mailing list