Lines 26-31
use Koha::Holds;
Link Here
|
26 |
use Koha::OldIssues; |
26 |
use Koha::OldIssues; |
27 |
use Koha::Patrons; |
27 |
use Koha::Patrons; |
28 |
|
28 |
|
|
|
29 |
=head1 NAME |
30 |
|
31 |
Koha::REST::V1 - Main v.1 REST api class |
32 |
|
33 |
=head1 API |
34 |
|
35 |
=head2 Class Methods |
36 |
|
37 |
=head3 startup |
38 |
|
39 |
Overloaded Mojolicious->startup method. It is called at application startup. |
40 |
|
41 |
=cut |
42 |
|
29 |
sub startup { |
43 |
sub startup { |
30 |
my $self = shift; |
44 |
my $self = shift; |
31 |
|
45 |
|
Lines 167-173
sub check_object_ownership {
Link Here
|
167 |
reserve_id => \&_object_ownership_by_reserve_id, |
181 |
reserve_id => \&_object_ownership_by_reserve_id, |
168 |
}; |
182 |
}; |
169 |
|
183 |
|
170 |
foreach my $param (keys $parameters) { |
184 |
foreach my $param ( keys %{ $parameters } ) { |
171 |
my $check_ownership = $parameters->{$param}; |
185 |
my $check_ownership = $parameters->{$param}; |
172 |
if ($c->stash($param)) { |
186 |
if ($c->stash($param)) { |
173 |
return &$check_ownership($c, $user, $c->stash($param)); |
187 |
return &$check_ownership($c, $user, $c->stash($param)); |
174 |
- |
|
|