|
Lines 903-908
sub checkauth {
Link Here
|
| 903 |
$info{'nopermission'} = 1; |
903 |
$info{'nopermission'} = 1; |
| 904 |
C4::Context->_unset_userenv($sessionID); |
904 |
C4::Context->_unset_userenv($sessionID); |
| 905 |
$loggedin = 0; |
905 |
$loggedin = 0; |
|
|
906 |
if (C4::Context->preference('InsufficientPermissionRedirectURL')) { |
| 907 |
print $query->redirect(C4::Context->preference('InsufficientPermissionRedirectURL')); |
| 908 |
} |
| 906 |
} |
909 |
} |
| 907 |
} |
910 |
} |
| 908 |
elsif ( $emailaddress) { |
911 |
elsif ( $emailaddress) { |
|
Lines 1011-1016
sub checkauth {
Link Here
|
| 1011 |
$loggedin = 1; |
1014 |
$loggedin = 1; |
| 1012 |
} else { |
1015 |
} else { |
| 1013 |
$info{'nopermission'} = 1; |
1016 |
$info{'nopermission'} = 1; |
|
|
1017 |
if (C4::Context->preference('InsufficientPermissionRedirectURL')) { |
| 1018 |
print $query->redirect(C4::Context->preference('InsufficientPermissionRedirectURL')); |
| 1019 |
} |
| 1014 |
} |
1020 |
} |
| 1015 |
} |
1021 |
} |
| 1016 |
} |
1022 |
} |
|
Lines 1140-1145
sub checkauth {
Link Here
|
| 1140 |
else { |
1146 |
else { |
| 1141 |
$info{'nopermission'} = 1; |
1147 |
$info{'nopermission'} = 1; |
| 1142 |
C4::Context->_unset_userenv($sessionID); |
1148 |
C4::Context->_unset_userenv($sessionID); |
|
|
1149 |
if (C4::Context->preference('InsufficientPermissionRedirectURL')) { |
| 1150 |
print $query->redirect(C4::Context->preference('InsufficientPermissionRedirectURL')); |
| 1151 |
} |
| 1143 |
} |
1152 |
} |
| 1144 |
my ( $borrowernumber, $firstname, $surname, $userflags, |
1153 |
my ( $borrowernumber, $firstname, $surname, $userflags, |
| 1145 |
$branchcode, $branchname, $branchprinter, $emailaddress ); |
1154 |
$branchcode, $branchname, $branchprinter, $emailaddress ); |