Bug 14529: The new list permission is 'lists', not 'shelves'

Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
This commit is contained in:
Jonathan Druart 2015-08-18 12:43:27 +01:00 committed by Tomas Cohen Arazi
parent 3ec6c88ae1
commit 748b212cf9

View file

@ -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;