Bug 14529: The new list permission is 'lists', not 'shelves'
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 18 Aug 2015 11:43:27 +0000 (12:43 +0100)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Tue, 18 Aug 2015 16:18:21 +0000 (13:18 -0300)
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>
C4/VirtualShelves.pm

index 3833eec..0b11830 100644 (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;