BUG 18505: opac-search-history does not respect opacPublic

The opac-search-history page was available regardless of the opacPublic setting, this
patch corrects that.

Test plan, set opacPublic to 'No', test whether opac-search-history page is available
when not logged in, note that it is.
Apply patch, test whether opac-search-history is still available when not logged in,
note that you should be redirected to the login page.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 94e09b6a18)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
(cherry picked from commit f31a5b00e8)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
Martin Renvoize 2017-04-28 08:48:50 +01:00 committed by Julian Maurice
parent 143117346d
commit babfc1c714
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ my ($template, $loggedinuser, $cookie) = get_template_and_user(
template_name => "opac-search-history.tt",
query => $cgi,
type => "opac",
authnotrequired => 1,
authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
flagsrequired => {borrowers => 1},
debug => 1,
}