--- /dev/null
+$DBversion = 'XXX';
+if( CheckVersion( $DBversion ) ) {
+ $dbh->do(q|
+ INSERT IGNORE INTO permissions (module_bit, code, description) VALUES
+ (4, 'edit_borrowers', 'Add, modify and view patron information'),
+ (4, 'view_borrower_infos_from_any_libraries', 'View patron infos from any libraries');
+ |);
+
+ # We are lucky here, there is nothing else to do: flags 4-borrowers did not contain sub permissions
+
+ SetVersion( $DBversion );
+ print "Upgrade to $DBversion done (Bug XXXXX - Add the view_borrower_infos_from_any_libraries permission )\n";
+}
( 1, 'self_checkout', 'Perform self checkout at the OPAC. It should be used for the patron matching the AutoSelfCheckID'),
( 3, 'parameters_remaining_permissions', 'Remaining system parameters permissions'),
( 3, 'manage_circ_rules', 'Manage circulation rules'),
+ ( 4, 'edit_borrowers', 'Add, modify and view patron information'),
+ ( 4, 'view_borrower_infos_from_any_libraries', 'View patron infos from any libraries'),
( 6, 'place_holds', 'Place holds for patrons'),
( 6, 'modify_holds_priority', 'Modify holds priority'),
( 9, 'edit_catalogue', 'Edit catalog (Modify bibliographic/holdings data)'),
[%- CASE 'self_checkout' -%]<span>Perform self checkout at the OPAC. It should be used for the patron matching the AutoSelfCheckID</span>
[%- CASE 'manage_circ_rules' -%]<span>manage circulation rules</span>
[%- CASE 'parameters_remaining_permissions' -%]<span>Remaining system parameters permissions</span>
+ [%- CASE 'edit_borrowers' -%]<span>Add, modify and view patron information</span>
+ [%- CASE 'view_borrower_infos_from_any_libraries' -%]<span>View patron infos from any libraries. If not set the logged in user could only access patron infos from its own library or group of libraries.</span>
[%- CASE 'modify_holds_priority' -%]<span>Modify holds priority</span>
[%- CASE 'place_holds' -%]<span>Place holds for patrons</span>
[%- CASE 'delete_all_items' -%]<span>Delete all items at once</span>