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

(-)a/opac/opac-article-request-cancel.pl (-2 / +5 lines)
Lines 41-50 my $id = $query->param('id'); Link Here
41
41
42
if ( $id ) {
42
if ( $id ) {
43
    my $ar = Koha::ArticleRequests->find( $id );
43
    my $ar = Koha::ArticleRequests->find( $id );
44
    if ( !$ar || $ar->borrowernumber != $borrowernumber ) {
44
    if ( !$ar ) {
45
        print $query->redirect("/cgi-bin/koha/errors/404.pl");
45
        print $query->redirect("/cgi-bin/koha/errors/404.pl");
46
        exit;
46
        exit;
47
    }
47
    }
48
    elsif ( $ar->borrowernumber != $borrowernumber ) {
49
        print $query->redirect("/cgi-bin/koha/errors/403.pl");
50
        exit;
51
    }
48
52
49
    $ar->cancel();
53
    $ar->cancel();
50
}
54
}
51
- 

Return to bug 22068