Lines 204-214
sub get_template_and_user {
Link Here
|
204 |
} |
204 |
} |
205 |
|
205 |
|
206 |
if ( $in->{type} eq 'opac' && $user ) { |
206 |
if ( $in->{type} eq 'opac' && $user ) { |
207 |
my $is_sco_user; |
207 |
my $is_sc_user; |
208 |
if ($sessionID){ |
208 |
if ($sessionID){ |
209 |
my $session = get_session($sessionID); |
209 |
my $session = get_session($sessionID); |
210 |
if ($session){ |
210 |
if ($session){ |
211 |
$is_sco_user = $session->param('sco_user'); |
211 |
$is_sc_user = $session->param('sco_user'); |
212 |
} |
212 |
} |
213 |
} |
213 |
} |
214 |
my $kick_out; |
214 |
my $kick_out; |
Lines 218-224
sub get_template_and_user {
Link Here
|
218 |
# log the user out removing the CGISESSID cookie |
218 |
# log the user out removing the CGISESSID cookie |
219 |
$in->{template_name} !~ m|sco/| && $in->{template_name} !~ m|errors/errorpage.tt| |
219 |
$in->{template_name} !~ m|sco/| && $in->{template_name} !~ m|errors/errorpage.tt| |
220 |
&& ( |
220 |
&& ( |
221 |
$is_sco_user || |
221 |
$is_sc_user || |
222 |
( |
222 |
( |
223 |
C4::Context->preference('AutoSelfCheckID') |
223 |
C4::Context->preference('AutoSelfCheckID') |
224 |
&& $user eq C4::Context->preference('AutoSelfCheckID') |
224 |
&& $user eq C4::Context->preference('AutoSelfCheckID') |
Lines 1242-1250
sub checkauth {
Link Here
|
1242 |
} |
1242 |
} |
1243 |
} |
1243 |
} |
1244 |
|
1244 |
|
1245 |
my $is_sco_user = 0; |
1245 |
my $is_sc_user = 0; |
1246 |
if ( $query->param('sco_user_login') && ( $query->param('sco_user_login') eq '1' ) ){ |
1246 |
if ( $query->param('sco_user_login') && ( $query->param('sco_user_login') eq '1' ) || ($query->param('sci_user_login') && ($query->param('sci_user_login') eq '1')) ){ |
1247 |
$is_sco_user = 1; |
1247 |
$is_sc_user = 1; |
1248 |
} |
1248 |
} |
1249 |
|
1249 |
|
1250 |
$session->param( 'number', $borrowernumber ); |
1250 |
$session->param( 'number', $borrowernumber ); |
Lines 1264-1270
sub checkauth {
Link Here
|
1264 |
$session->param( 'shibboleth', $shibSuccess ); |
1264 |
$session->param( 'shibboleth', $shibSuccess ); |
1265 |
$session->param( 'register_id', $register_id ); |
1265 |
$session->param( 'register_id', $register_id ); |
1266 |
$session->param( 'register_name', $register_name ); |
1266 |
$session->param( 'register_name', $register_name ); |
1267 |
$session->param( 'sco_user', $is_sco_user ); |
1267 |
$session->param( 'sco_user', $is_sc_user ); |
1268 |
} |
1268 |
} |
1269 |
$session->param('cas_ticket', $cas_ticket) if $cas_ticket; |
1269 |
$session->param('cas_ticket', $cas_ticket) if $cas_ticket; |
1270 |
C4::Context->set_userenv( |
1270 |
C4::Context->set_userenv( |