Bugzilla – Attachment 138948 Details for
Bug 27342
Improve readability and improvement of C4::Auth::get_template_and_user
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27342: Improve test for OPAC
Bug-27342-Improve-test-for-OPAC.patch (text/plain), 903 bytes, created by
Martin Renvoize (ashimema)
on 2022-08-10 07:15:00 UTC
(
hide
)
Description:
Bug 27342: Improve test for OPAC
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-08-10 07:15:00 UTC
Size:
903 bytes
patch
obsolete
>From f1bcb76e2d7ae0990b0f1a2a49bc7fc3f9c292bb Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 5 Jan 2021 11:18:26 +0100 >Subject: [PATCH] Bug 27342: Improve test for OPAC > >We don't need to build allowed_scripts_for_private_opac for staff > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/Auth.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 7cf4c9dbc8..0e0a1a3dc4 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -824,7 +824,7 @@ sub checkauth { > my $template_name = shift; > $type = 'opac' unless $type; > >- unless ( C4::Context->preference("OpacPublic") ) { >+ if ( $type eq 'opac' && !C4::Context->preference("OpacPublic") ) { > my @allowed_scripts_for_private_opac = qw( > opac-memberentry.tt > opac-registration-email-sent.tt >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27342
:
114874
|
114875
|
132024
|
132025
| 138948 |
138949
|
138950
|
139196
|
139294