Lines 523-532
if ((!$nok) and $nodouble and ($op eq 'insert' or $op eq 'save')){
Link Here
|
523 |
C4::Form::MessagingPreferences::handle_form_action($input, { borrowernumber => $borrowernumber }, $template); |
523 |
C4::Form::MessagingPreferences::handle_form_action($input, { borrowernumber => $borrowernumber }, $template); |
524 |
} |
524 |
} |
525 |
} |
525 |
} |
526 |
print scalar ($destination eq "circ") ? |
526 |
|
527 |
$input->redirect("/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber") : |
527 |
if ( $destination eq 'circ' and not C4::Auth::haspermission( C4::Context->userenv->{id}, { circulate => 'circulate_remaining_permissions' } ) ) { |
528 |
$input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber") ; |
528 |
# If we want to redirect to circulation.pl and need to check if the logged in user has the necessary permission |
529 |
exit; # You can only send 1 redirect! After that, content or other headers don't matter. |
529 |
$destination = 'not_circ'; |
|
|
530 |
} |
531 |
print scalar( $destination eq "circ" ) |
532 |
? $input->redirect( |
533 |
"/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber") |
534 |
: $input->redirect( |
535 |
"/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber" |
536 |
); |
537 |
exit; # You can only send 1 redirect! After that, content or other headers don't matter. |
530 |
} |
538 |
} |
531 |
|
539 |
|
532 |
if ($delete){ |
540 |
if ($delete){ |
533 |
- |
|
|