diff --git a/C4/Auth.pm b/C4/Auth.pm index 39c6a6c95c..7f0a233b59 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -192,7 +192,7 @@ 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|sco/| && $in->{template_name} !~ m|errors/| && C4::Context->preference('AutoSelfCheckID') && $user eq C4::Context->preference('AutoSelfCheckID') )