|
Lines 256-262
sub get_template_and_user {
Link Here
|
| 256 |
# If the user logged in is the SCI user and they try to go out of the SCI module, |
256 |
# If the user logged in is the SCI user and they try to go out of the SCI module, |
| 257 |
# kick them out unless it is SCO with a valid permission |
257 |
# kick them out unless it is SCO with a valid permission |
| 258 |
# or they are a superlibrarian |
258 |
# or they are a superlibrarian |
| 259 |
$in->{template_name} !~ m|sci/| |
259 |
$in->{template_name} !~ m|sci/| && $in->{template_name} !~ m|errors/errorpage.tt| |
| 260 |
&& haspermission( $user, { self_check => 'self_checkin_module' } ) |
260 |
&& haspermission( $user, { self_check => 'self_checkin_module' } ) |
| 261 |
&& !( |
261 |
&& !( |
| 262 |
$in->{template_name} =~ m|sco/| && haspermission( |
262 |
$in->{template_name} =~ m|sco/| && haspermission( |
| 263 |
- |
|
|