@@ -, +, @@ --- t/db_dependent/api/v1/circ_rules.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/t/db_dependent/api/v1/circ_rules.t +++ a/t/db_dependent/api/v1/circ_rules.t @@ -253,11 +253,13 @@ sub create_user_and_session { $session->param( 'lasttime', time() ); $session->flush; - if ( $args->{permissions} ne 'authorized_restricted' ) { + # Allow circulation rules management for librarian's home library, but not + # other libraries + if ( $args->{permissions} eq 'authorized_restricted' ) { $dbh->do( q{ INSERT INTO user_permissions (borrowernumber,module_bit,code) - VALUES (?,3,'manage_circ_rules_from_any_libraries'), (?,3,'manage_circ_rules')}, + VALUES (?,3,'manage_circ_rules')}, undef, $user->{borrowernumber}, $user->{borrowernumber} ); } --