diff --git a/C4/Auth.pm b/C4/Auth.pm index a12b92bb38..a5c3af3ac7 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -238,7 +238,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(