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>
This commit is contained in:
parent
6c303f3c1c
commit
a4460bb5e0
|
|
@ -827,7 +827,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
|
||||
|
|
|
|||
Loading…
Reference in New Issue