From 58d6a97ef6c2c7159ca617e0ca720da3dd153bee Mon Sep 17 00:00:00 2001 From: PerplexedTheta Date: Tue, 23 Jul 2024 09:13:39 +0100 Subject: [PATCH] Bug 13888: (follow-up) fix tests for Virtualshelves This patch fixes failing tests resulting from oversight in the previous attachments I supplied to this bug number. Signed-off-by: Martin Renvoize --- t/db_dependent/Virtualshelves.t | 1 + 1 file changed, 1 insertion(+) diff --git a/t/db_dependent/Virtualshelves.t b/t/db_dependent/Virtualshelves.t index effd7347bf..0b8c5bf5e7 100755 --- a/t/db_dependent/Virtualshelves.t +++ b/t/db_dependent/Virtualshelves.t @@ -303,6 +303,7 @@ subtest 'Shelf permissions' => sub { my $patron4 = $builder->build( { source => 'Borrower', value => { flags => '0' } } ); my $patron5 = $builder->build( { source => 'Borrower', value => { flags => '4' } } ); my $sth = $dbh->prepare("INSERT INTO user_permissions (borrowernumber, module_bit, code) VALUES (?,?,?)"); + $sth->execute($patron2->{borrowernumber}, 20, 'edit_public_list_contents'); # $patron2 has everything checked but not superlibrarian and delete_public_lists $sth->execute($patron4->{borrowernumber}, 20, 'edit_public_lists'); # $patron4 only has the edit_public_lists sub-permission checked $sth->execute($patron5->{borrowernumber}, 20, 'edit_public_list_contents'); # $patron5 has the 'catalogue' permission and edit_public_list_contents sub-permission checked -- 2.39.5