|
Lines 131-144
my $itemnumber2 = create_item($biblionumber2, 'TEST000002');
Link Here
|
| 131 |
|
131 |
|
| 132 |
my $dbh = C4::Context->dbh; |
132 |
my $dbh = C4::Context->dbh; |
| 133 |
$dbh->do('DELETE FROM reserves'); |
133 |
$dbh->do('DELETE FROM reserves'); |
| 134 |
$dbh->do('DELETE FROM circulation_rules'); |
134 |
Koha::CirculationRules->search()->delete(); |
| 135 |
Koha::CirculationRules->set_rules( |
135 |
Koha::CirculationRules->set_rules( |
| 136 |
{ |
136 |
{ |
| 137 |
categorycode => '*', |
137 |
categorycode => '*', |
| 138 |
branchcode => '*', |
138 |
branchcode => '*', |
| 139 |
itemtype => '*', |
139 |
itemtype => '*', |
| 140 |
rules => { |
140 |
rules => { |
| 141 |
reservesallowed => 1 |
141 |
reservesallowed => 1, |
|
|
142 |
holds_per_record => 99 |
| 142 |
} |
143 |
} |
| 143 |
} |
144 |
} |
| 144 |
); |
145 |
); |
|
Lines 202-207
subtest "Test endpoints without permission" => sub {
Link Here
|
| 202 |
$t->request_ok($tx) # no permission |
203 |
$t->request_ok($tx) # no permission |
| 203 |
->status_is(403); |
204 |
->status_is(403); |
| 204 |
}; |
205 |
}; |
|
|
206 |
|
| 205 |
subtest "Test endpoints without permission, but accessing own object" => sub { |
207 |
subtest "Test endpoints without permission, but accessing own object" => sub { |
| 206 |
plan tests => 15; |
208 |
plan tests => 15; |
| 207 |
|
209 |
|
| 208 |
- |
|
|