diff --git a/C4/Auth.pm b/C4/Auth.pm index 86ddd3baf0..e3478ea691 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -256,7 +256,7 @@ sub get_template_and_user { # If the user logged in is the SCI user and they try to go out of the SCI module, # kick them out unless it is SCO with a valid permission # or they are a superlibrarian - $in->{template_name} !~ m|sci/| + $in->{template_name} !~ m|sci/| && $in->{template_name} !~ m|errors/errorpage.tt| && haspermission( $user, { self_check => 'self_checkin_module' } ) && !( $in->{template_name} =~ m|sco/| && haspermission(