Main Koha release repository https://koha-community.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
543 B

$DBversion = 'XXX'; # will be replaced by the RM
if ( CheckVersion($DBversion) ) {
$dbh->do(
qq{
INSERT IGNORE permissions (module_bit, code, description)
VALUES
(4, 'delete_borrowers', 'Delete borrowers')
}
);
$dbh->do(q{
INSERT IGNORE INTO user_permissions (borrowernumber, module_bit, code)
SELECT borrowernumber, 4, 'delete_borrowers' FROM user_permissions WHERE code = 'edit_borrowers'
});
NewVersion( $DBversion, 15788, "Split edit_borrowers permission" );
}