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

(-)a/Koha/ILL/Request.pm (+12 lines)
Lines 2090-2095 sub TO_JSON { Link Here
2090
    return $object;
2090
    return $object;
2091
}
2091
}
2092
2092
2093
=head3 public_read_list
2094
2095
This method returns the list of publicly readable database fields for both API and UI output purposes
2096
2097
=cut
2098
2099
sub public_read_list {
2100
    return [qw(
2101
        illrequest_id backend status extended_attributes placed updated
2102
    )];
2103
}
2104
2093
=head2 Internal methods
2105
=head2 Internal methods
2094
2106
2095
=head3 to_api_mapping
2107
=head3 to_api_mapping
(-)a/Koha/ILL/Request/Attribute.pm (+4 lines)
Lines 58-63 sub request { Link Here
58
    return Koha::ILL::Request->_new_from_dbic( $self->_result->illrequest );
58
    return Koha::ILL::Request->_new_from_dbic( $self->_result->illrequest );
59
}
59
}
60
60
61
sub public_read_list {
62
    return [qw(backend illrequest_id readonly type value)];
63
}
64
61
=head2 Internal methods
65
=head2 Internal methods
62
66
63
=head3 _type
67
=head3 _type
(-)a/Koha/REST/V1/ILL/Requests.pm (-1 / +1 lines)
Lines 61-66 sub list { Link Here
61
sub patron_list {
61
sub patron_list {
62
    my $c = shift->openapi->valid_input or return;
62
    my $c = shift->openapi->valid_input or return;
63
    my $user = $c->stash('koha.user');
63
    my $user = $c->stash('koha.user');
64
    $c->stash(is_public => 1);
64
65
65
    if ($user->borrowernumber != $c->param('patron_id') and !$user->is_superlibrarian) {
66
    if ($user->borrowernumber != $c->param('patron_id') and !$user->is_superlibrarian) {
66
        return $c->render(
67
        return $c->render(
67
- 

Return to bug 39600