Lines 84-97
$builder->build(
Link Here
|
84 |
module_bit => 1, |
84 |
module_bit => 1, |
85 |
code => 'manage_bookings', |
85 |
code => 'manage_bookings', |
86 |
}, |
86 |
}, |
87 |
} |
87 |
} |
88 |
); |
88 |
); |
89 |
$bookings_librarian->set_password( { password => $password, skip_validation => 1 } ); |
89 |
$bookings_librarian->set_password( { password => $password, skip_validation => 1 } ); |
90 |
my $bookings_userid = $bookings_librarian->userid; |
90 |
my $bookings_userid = $bookings_librarian->userid; |
91 |
|
91 |
|
92 |
$t->get_ok( "//$bookings_userid:$password@/api/v1/checkouts?patron_id=$patron_id" ) |
92 |
$t->get_ok("//$bookings_userid:$password@/api/v1/checkouts?patron_id=$patron_id") |
93 |
->status_is(200, 'manage_bookings allows checkouts access') |
93 |
->status_is( 200, 'manage_bookings allows checkouts access' )->json_is( [] ); |
94 |
->json_is([]); |
|
|
95 |
|
94 |
|
96 |
Koha::CirculationRules->set_rules( |
95 |
Koha::CirculationRules->set_rules( |
97 |
{ |
96 |
{ |
98 |
- |
|
|