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

(-)a/Koha/ILL/Request.pm (+12 lines)
Lines 2017-2022 sub TO_JSON { Link Here
2017
    return $object;
2017
    return $object;
2018
}
2018
}
2019
2019
2020
=head3 public_read_list
2021
2022
This method returns the list of publicly readable database fields for both API and UI output purposes
2023
2024
=cut
2025
2026
sub public_read_list {
2027
    return [qw(
2028
        illrequest_id backend status extended_attributes placed updated
2029
    )];
2030
}
2031
2020
=head2 Internal methods
2032
=head2 Internal methods
2021
2033
2022
=head3 to_api_mapping
2034
=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