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

(-)a/installer/data/mysql/atomicupdate/bug_24846.perl (+11 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(qq{
4
        INSERT IGNORE permissions (module_bit, code, description)
5
        VALUES
6
        (13, 'batch_extend_due_dates', 'Perform batch extend due dates')
7
    });
8
9
    SetVersion($DBversion);
10
    print "Upgrade to $DBversion done (Bug 24846 - Add a new permission for new tool batch extend due dates)\n";
11
}
(-)a/installer/data/mysql/userpermissions.sql (+1 lines)
Lines 79-84 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
79
   (13, 'import_patrons', 'Import patron data'),
79
   (13, 'import_patrons', 'Import patron data'),
80
   (13, 'edit_patrons', 'Perform batch modification of patrons'),
80
   (13, 'edit_patrons', 'Perform batch modification of patrons'),
81
   (13, 'delete_anonymize_patrons', 'Delete old borrowers and anonymize circulation history (deletes borrower reading history)'),
81
   (13, 'delete_anonymize_patrons', 'Delete old borrowers and anonymize circulation history (deletes borrower reading history)'),
82
   (13, 'batch_extend_due_dates', 'Perform batch extend due dates'),
82
   (13, 'batch_upload_patron_images', 'Upload patron images in a batch or one at a time'),
83
   (13, 'batch_upload_patron_images', 'Upload patron images in a batch or one at a time'),
83
   (13, 'schedule_tasks', 'Schedule tasks to run'),
84
   (13, 'schedule_tasks', 'Schedule tasks to run'),
84
   (13, 'items_batchmod', 'Perform batch modification of items'),
85
   (13, 'items_batchmod', 'Perform batch modification of items'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (-1 / +5 lines)
Lines 407-412 Link Here
407
            Delete old borrowers and anonymize circulation history (deletes borrower reading history)
407
            Delete old borrowers and anonymize circulation history (deletes borrower reading history)
408
        </span>
408
        </span>
409
        <span class="permissioncode">([% name | html %])</span>
409
        <span class="permissioncode">([% name | html %])</span>
410
    [%- CASE 'batch_extend_due_dates' -%]
411
        <span class="sub_permission batch_extend_due_dates_subpermission">
412
            Perform batch extend due dates
413
        </span>
414
        <span class="permissioncode">([% name | html %])</span>
410
    [%- CASE 'edit_calendar' -%]
415
    [%- CASE 'edit_calendar' -%]
411
        <span class="sub_permission edit_calendar_subpermission">
416
        <span class="sub_permission edit_calendar_subpermission">
412
            Define days when the library is closed
417
            Define days when the library is closed
413
- 

Return to bug 24846