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

(-)a/admin/background_jobs.pl (-1 / +2 lines)
Lines 37-43 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
37
        query           => $input,
37
        query           => $input,
38
        type            => "intranet",
38
        type            => "intranet",
39
        authnotrequired => 0,
39
        authnotrequired => 0,
40
        flagsrequired   => { parameters => 'manage_background_jobs' }, # TODO Add this new permission, so far only works for superlibrarians
40
        flagsrequired   => { parameters => 'manage_background_jobs' }, # Maybe the "view" view should be accessible for the user who create this job.
41
                                                                       # But in that case what could the permission to check here? tools => '*' ?
41
        debug           => 1,
42
        debug           => 1,
42
    }
43
    }
43
);
44
);
(-)a/installer/data/mysql/atomicupdate/bug_15032.perl (+6 lines)
Lines 20-25 if( CheckVersion( $DBversion ) ) { Link Here
20
        |);
20
        |);
21
    }
21
    }
22
22
23
    $dbh->do(qq{
24
        INSERT IGNORE permissions (module_bit, code, description)
25
        VALUES
26
        (3, 'manage_background_jobs', 'Manage background jobs')
27
    });
28
23
    SetVersion( $DBversion );
29
    SetVersion( $DBversion );
24
    print "Upgrade to $DBversion done (Bug 15032 - Add new table background_jobs)\n";
30
    print "Upgrade to $DBversion done (Bug 15032 - Add new table background_jobs)\n";
25
}
31
}
(-)a/installer/data/mysql/userpermissions.sql (+1 lines)
Lines 34-39 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
34
   ( 3, 'manage_mana', 'Manage Mana KB content sharing'),
34
   ( 3, 'manage_mana', 'Manage Mana KB content sharing'),
35
   ( 3, 'manage_additional_fields', 'Add, edit, or delete additional custom fields for baskets or subscriptions (also requires order_manage or edit_subscription permissions)'),
35
   ( 3, 'manage_additional_fields', 'Add, edit, or delete additional custom fields for baskets or subscriptions (also requires order_manage or edit_subscription permissions)'),
36
   ( 3, 'manage_keyboard_shortcuts', 'Manage keyboard shortcuts for the advanced cataloging editor'),
36
   ( 3, 'manage_keyboard_shortcuts', 'Manage keyboard shortcuts for the advanced cataloging editor'),
37
   ( 3, 'manage_background_jobs', 'Manage background jobs'),
37
   ( 4, 'edit_borrowers', 'Add, modify and view patron information'),
38
   ( 4, 'edit_borrowers', 'Add, modify and view patron information'),
38
   ( 4, 'view_borrower_infos_from_any_libraries', 'View patron infos from any libraries'),
39
   ( 4, 'view_borrower_infos_from_any_libraries', 'View patron infos from any libraries'),
39
   ( 6, 'place_holds', 'Place holds for patrons'),
40
   ( 6, 'place_holds', 'Place holds for patrons'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (-1 / +5 lines)
Lines 255-260 Link Here
255
            Manage keyboard shortcuts for the advanced cataloging editor
255
            Manage keyboard shortcuts for the advanced cataloging editor
256
        </span>
256
        </span>
257
        <span class="permissioncode">([% name | html %])</span>
257
        <span class="permissioncode">([% name | html %])</span>
258
    [%- CASE 'manage_background_jobs' -%]
259
        <span class="sub_permission manage_background_jobs_subpermission">
260
            Manage background jobs
261
        </span>
262
        <span class="permissioncode">([% name | html %])</span>
258
    [%- CASE 'edit_borrowers' -%]
263
    [%- CASE 'edit_borrowers' -%]
259
        <span class="sub_permission edit_borrowers_subpermission">
264
        <span class="sub_permission edit_borrowers_subpermission">
260
            Add, modify and view patron information
265
            Add, modify and view patron information
261
- 

Return to bug 22417