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

(-)a/t/db_dependent/api/v1/holds.t (-3 / +3 lines)
Lines 202-208 subtest "Test endpoints without permission" => sub { Link Here
202
      ->status_is(403);
202
      ->status_is(403);
203
};
203
};
204
subtest "Test endpoints without permission, but accessing own object" => sub {
204
subtest "Test endpoints without permission, but accessing own object" => sub {
205
    plan tests => 15;
205
    plan tests => 16;
206
206
207
    my $borrno_tmp = $post_data->{'borrowernumber'};
207
    my $borrno_tmp = $post_data->{'borrowernumber'};
208
    $post_data->{'borrowernumber'} = int $nopermission->{'borrowernumber'};
208
    $post_data->{'borrowernumber'} = int $nopermission->{'borrowernumber'};
Lines 236-242 subtest "Test endpoints without permission, but accessing own object" => sub { Link Here
236
            }
236
            }
237
        )
237
        )
238
      )
238
      )
239
      ->json_is( '/priority', 2 );
239
      ->json_is( '/priority',   2 )
240
      ->json_is( '/itemnumber', $itemnumber );
240
};
241
};
241
242
242
subtest "Test endpoints with permission" => sub {
243
subtest "Test endpoints with permission" => sub {
243
- 

Return to bug 20167