@@ -, +, @@ template. --- C4/Auth.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/C4/Auth.pm +++ a/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') ) { --