View | Details | Raw Unified | Return to bug 20479
Collapse All | Expand All

(-)a/C4/Auth.pm (-2 / +2 lines)
Lines 196-201 sub get_template_and_user { Link Here
196
        elsif (
196
        elsif (
197
# If the user logged in is the SCI user and they try to go out of the SCI module,
197
# If the user logged in is the SCI user and they try to go out of the SCI module,
198
# kick them out unless it is SCO with a valid permission
198
# kick them out unless it is SCO with a valid permission
199
# or they are a superlibrarian
199
               $in->{template_name} !~ m|sci/|
200
               $in->{template_name} !~ m|sci/|
200
            && $user
201
            && $user
201
            && haspermission( $user, { self_check => 'self_checkin_module' } )
202
            && haspermission( $user, { self_check => 'self_checkin_module' } )
Lines 203-209 sub get_template_and_user { Link Here
203
                $in->{template_name} =~ m|sco/| && haspermission(
204
                $in->{template_name} =~ m|sco/| && haspermission(
204
                    $user, { self_check => 'self_checkout_module' }
205
                    $user, { self_check => 'self_checkout_module' }
205
                )
206
                )
206
            )
207
            ) && Koha::Patrons->find({userid=>$user})->flags != 1
207
          )
208
          )
208
        {
209
        {
209
            $kick_out = 1;
210
            $kick_out = 1;
210
- 

Return to bug 20479