Lines 913-926
sub checkauth {
Link Here
|
913 |
-secure => ( C4::Context->https_enabled() ? 1 : 0 ), |
913 |
-secure => ( C4::Context->https_enabled() ? 1 : 0 ), |
914 |
); |
914 |
); |
915 |
|
915 |
|
916 |
my $sessiontype = $session->param('sessiontype') || ''; |
916 |
$flags = haspermission( $userid, $flagsrequired ); |
917 |
unless ( $sessiontype && $sessiontype eq 'anon' ) { #if this is an anonymous session, we want to update the session, but not behave as if they are logged in... |
917 |
if ($flags) { |
918 |
$flags = haspermission( $userid, $flagsrequired ); |
918 |
$loggedin = 1; |
919 |
if ($flags) { |
919 |
} else { |
920 |
$loggedin = 1; |
920 |
$info{'nopermission'} = 1; |
921 |
} else { |
|
|
922 |
$info{'nopermission'} = 1; |
923 |
} |
924 |
} |
921 |
} |
925 |
} |
922 |
} |
926 |
} elsif ( !$logout ) { |
923 |
} elsif ( !$logout ) { |
Lines 941-947
sub checkauth {
Link Here
|
941 |
|
938 |
|
942 |
unless ( $userid ) { |
939 |
unless ( $userid ) { |
943 |
#we initiate a session prior to checking for a username to allow for anonymous sessions... |
940 |
#we initiate a session prior to checking for a username to allow for anonymous sessions... |
944 |
my $session = get_session("") or die "Auth ERROR: Cannot get_session()"; |
941 |
$session ||= get_session("") or die "Auth ERROR: Cannot get_session()"; |
945 |
|
942 |
|
946 |
# Save anonymous search history in new session so it can be retrieved |
943 |
# Save anonymous search history in new session so it can be retrieved |
947 |
# by get_template_and_user to store it in user's search history after |
944 |
# by get_template_and_user to store it in user's search history after |
948 |
- |
|
|