View | Details | Raw Unified | Return to bug 18443
Collapse All | Expand All

(-)a/C4/Auth.pm (-2 / +1 lines)
Lines 184-190 sub get_template_and_user { Link Here
184
184
185
    # If the user logged in is the SCO user and he tries to go out the SCO module, log the user out removing the CGISESSID cookie
185
    # If the user logged in is the SCO user and he tries to go out the SCO module, log the user out removing the CGISESSID cookie
186
    if ( $in->{type} eq 'opac' and $in->{template_name} !~ m|sco/| ) {
186
    if ( $in->{type} eq 'opac' and $in->{template_name} !~ m|sco/| ) {
187
        if (  C4::Context->preference('AutoSelfCheckID') && $user eq C4::Context->preference('AutoSelfCheckID') ) {
187
        if ( $user && C4::Context->preference('AutoSelfCheckID') && $user eq C4::Context->preference('AutoSelfCheckID') ) {
188
            $template = C4::Templates::gettemplate( 'opac-auth.tt', 'opac', $in->{query} );
188
            $template = C4::Templates::gettemplate( 'opac-auth.tt', 'opac', $in->{query} );
189
            my $cookie = $in->{query}->cookie(
189
            my $cookie = $in->{query}->cookie(
190
                -name     => 'CGISESSID',
190
                -name     => 'CGISESSID',
191
- 

Return to bug 18443