|
Lines 235-241
sub get_template_and_user {
Link Here
|
| 235 |
# If the user logged in is the SCI user and they try to go out of the SCI module, |
235 |
# If the user logged in is the SCI user and they try to go out of the SCI module, |
| 236 |
# kick them out unless it is SCO with a valid permission |
236 |
# kick them out unless it is SCO with a valid permission |
| 237 |
# or they are a superlibrarian |
237 |
# or they are a superlibrarian |
| 238 |
$in->{template_name} !~ m|sci/| |
238 |
$in->{template_name} !~ m|sci/| && $in->{template_name} !~ m|errors/errorpage.tt| |
| 239 |
&& haspermission( $user, { self_check => 'self_checkin_module' } ) |
239 |
&& haspermission( $user, { self_check => 'self_checkin_module' } ) |
| 240 |
&& !( |
240 |
&& !( |
| 241 |
$in->{template_name} =~ m|sco/| && haspermission( |
241 |
$in->{template_name} =~ m|sco/| && haspermission( |
| 242 |
- |
|
|