Lines 1926-1931
sub check_cookie_auth {
Link Here
|
1926 |
my $lasttime = $session->param('lasttime'); |
1926 |
my $lasttime = $session->param('lasttime'); |
1927 |
my $timeout = _timeout_syspref(); |
1927 |
my $timeout = _timeout_syspref(); |
1928 |
|
1928 |
|
|
|
1929 |
C4::Context->interface( $session->param('interface') ); |
1930 |
|
1929 |
if ( !$lasttime || ( $lasttime < time() - $timeout ) ) { |
1931 |
if ( !$lasttime || ( $lasttime < time() - $timeout ) ) { |
1930 |
|
1932 |
|
1931 |
# time out |
1933 |
# time out |
Lines 1957-1963
sub check_cookie_auth {
Link Here
|
1957 |
return ( "password_expired", undef ) if $patron->password_expired; |
1959 |
return ( "password_expired", undef ) if $patron->password_expired; |
1958 |
my $flags = defined($flagsrequired) ? haspermission( $userid, $flagsrequired ) : 1; |
1960 |
my $flags = defined($flagsrequired) ? haspermission( $userid, $flagsrequired ) : 1; |
1959 |
if ($flags) { |
1961 |
if ($flags) { |
1960 |
if ( !C4::Context->interface ) { |
1962 |
if ( !C4::Context->interface || C4::Context->interface ne $session->param('interface') ) { |
1961 |
|
1963 |
|
1962 |
# No need to override the interface, most often set by get_template_and_user |
1964 |
# No need to override the interface, most often set by get_template_and_user |
1963 |
C4::Context->interface( $session->param('interface') ); |
1965 |
C4::Context->interface( $session->param('interface') ); |
1964 |
- |
|
|