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

(-)a/Koha/ILL/Request.pm (+12 lines)
Lines 2136-2141 sub TO_JSON { Link Here
2136
    return $object;
2136
    return $object;
2137
}
2137
}
2138
2138
2139
=head3 public_read_list
2140
2141
This method returns the list of publicly readable database fields for both API and UI output purposes
2142
2143
=cut
2144
2145
sub public_read_list {
2146
    return [qw(
2147
        illrequest_id backend status extended_attributes placed updated
2148
    )];
2149
}
2150
2139
=head2 Internal methods
2151
=head2 Internal methods
2140
2152
2141
=head3 to_api_mapping
2153
=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