View | Details | Raw Unified | Return to bug 18403
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_xxxxx-add-permission.perl (+13 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q|
4
        INSERT IGNORE INTO permissions (module_bit, code, description) VALUES
5
        (4, 'edit_borrowers', 'Add, modify and view patron information'),
6
        (4, 'view_borrower_infos_from_any_libraries', 'View patron infos from any libraries');
7
    |);
8
9
    # We are lucky here, there is nothing else to do: flags 4-borrowers did not contain sub permissions
10
11
    SetVersion( $DBversion );
12
    print "Upgrade to $DBversion done (Bug XXXXX - Add the view_borrower_infos_from_any_libraries permission )\n";
13
}
(-)a/installer/data/mysql/userpermissions.sql (+2 lines)
Lines 7-12 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
7
   ( 1, 'self_checkout', 'Perform self checkout at the OPAC. It should be used for the patron matching the AutoSelfCheckID'),
7
   ( 1, 'self_checkout', 'Perform self checkout at the OPAC. It should be used for the patron matching the AutoSelfCheckID'),
8
   ( 3, 'parameters_remaining_permissions', 'Remaining system parameters permissions'),
8
   ( 3, 'parameters_remaining_permissions', 'Remaining system parameters permissions'),
9
   ( 3, 'manage_circ_rules', 'Manage circulation rules'),
9
   ( 3, 'manage_circ_rules', 'Manage circulation rules'),
10
   ( 4, 'edit_borrowers', 'Add, modify and view patron information'),
11
   ( 4, 'view_borrower_infos_from_any_libraries', 'View patron infos from any libraries'),
10
   ( 6, 'place_holds', 'Place holds for patrons'),
12
   ( 6, 'place_holds', 'Place holds for patrons'),
11
   ( 6, 'modify_holds_priority', 'Modify holds priority'),
13
   ( 6, 'modify_holds_priority', 'Modify holds priority'),
12
   ( 9, 'edit_catalogue', 'Edit catalog (Modify bibliographic/holdings data)'),
14
   ( 9, 'edit_catalogue', 'Edit catalog (Modify bibliographic/holdings data)'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (-1 / +2 lines)
Lines 32-37 Link Here
32
    [%- CASE 'self_checkout' -%]<span>Perform self checkout at the OPAC. It should be used for the patron matching the AutoSelfCheckID</span>
32
    [%- CASE 'self_checkout' -%]<span>Perform self checkout at the OPAC. It should be used for the patron matching the AutoSelfCheckID</span>
33
    [%- CASE 'manage_circ_rules' -%]<span>manage circulation rules</span>
33
    [%- CASE 'manage_circ_rules' -%]<span>manage circulation rules</span>
34
    [%- CASE 'parameters_remaining_permissions' -%]<span>Remaining system parameters permissions</span>
34
    [%- CASE 'parameters_remaining_permissions' -%]<span>Remaining system parameters permissions</span>
35
    [%- CASE 'edit_borrowers' -%]<span>Add, modify and view patron information</span>
36
    [%- 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>
35
    [%- CASE 'modify_holds_priority' -%]<span>Modify holds priority</span>
37
    [%- CASE 'modify_holds_priority' -%]<span>Modify holds priority</span>
36
    [%- CASE 'place_holds' -%]<span>Place holds for patrons</span>
38
    [%- CASE 'place_holds' -%]<span>Place holds for patrons</span>
37
    [%- CASE 'delete_all_items' -%]<span>Delete all items at once</span>
39
    [%- CASE 'delete_all_items' -%]<span>Delete all items at once</span>
38
- 

Return to bug 18403