From 54871b530558400acff889562027d2cdb3a8c8a9 Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Wed, 3 Apr 2019 09:43:53 +0000 Subject: [PATCH] Bug 18387: (QA Follow up) adding specificity to error template. Per Jonathan's comment. --- C4/Auth.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 3cca565508..7185bc0fe5 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -192,8 +192,8 @@ sub get_template_and_user { if ( # If the user logged in is the SCO user and they try to go out of the SCO module, # log the user out removing the CGISESSID cookie - $in->{template_name} !~ m|sco/| && $in->{template_name} !~ m|errors/| - && C4::Context->preference('AutoSelfCheckID') + $in->{template_name} !~ m|sco/| && $in->{template_name} !~ m|errors/errorpage.tt| + &r C4::Context->preference('AutoSelfCheckID') && $user eq C4::Context->preference('AutoSelfCheckID') ) { -- 2.11.0