From 748b212cf9a21440f62acc3dec29a93132795082 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 18 Aug 2015 12:43:27 +0100 Subject: [PATCH] Bug 14529: The new list permission is 'lists', not 'shelves' Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- C4/VirtualShelves.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/VirtualShelves.pm b/C4/VirtualShelves.pm index 3833eeca58..0b11830ac5 100644 --- a/C4/VirtualShelves.pm +++ b/C4/VirtualShelves.pm @@ -467,7 +467,7 @@ sub ShelfPossibleAction { my $borrower = C4::Members::GetMember( borrowernumber => $user ); require C4::Auth; return 1 - if C4::Auth::haspermission( $borrower->{userid}, { shelves => 'delete_public_lists' } ); + if C4::Auth::haspermission( $borrower->{userid}, { lists => 'delete_public_lists' } ); } my $dbh = C4::Context->dbh; -- 2.39.5