From 348192805a8d839beec5a8b92f0f28eae349cce8 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 17 Jan 2023 14:14:36 +0000 Subject: [PATCH] Bug 30979: Always show self-checkout when preference enabled This patch updates the display logic such that if the truested self-checkout option is enabled we always show the checkout button and prompt a login when no user is found. --- .../bootstrap/en/includes/masthead.inc | 2 +- .../opac-tmpl/bootstrap/js/modals/checkout.js | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index 20b34bce959..685d72b4999 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -81,7 +81,7 @@ [% END # / IF virtualshelves %] - [% IF ( Koha.Preference( 'OpacTrustedCheckout' ) && loggedinusername ) %] + [% IF Koha.Preference( 'OpacTrustedCheckout' ) %]