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

(-)a/installer/data/mysql/atomicupdate/bug_36135.pl (+14 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "36135",
5
    description => "Add new permission batch_modify_holds",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
10
        $dbh->do(q{INSERT IGNORE permissions (module_bit, code, description) VALUES (13, 'batch_modify_holds', 'Perform batch modification of holds')});
11
12
        say $out "Added new permission 'batch_modify_holds'";
13
    },
14
};
(-)a/installer/data/mysql/mandatory/userpermissions.sql (+1 lines)
Lines 104-109 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
104
   (13, 'edit_patrons', 'Perform batch modification of patrons'),
104
   (13, 'edit_patrons', 'Perform batch modification of patrons'),
105
   (13, 'delete_anonymize_patrons', 'Delete old borrowers and anonymize circulation history (deletes borrower checkout history)'),
105
   (13, 'delete_anonymize_patrons', 'Delete old borrowers and anonymize circulation history (deletes borrower checkout history)'),
106
   (13, 'batch_extend_due_dates', 'Perform batch extend due dates'),
106
   (13, 'batch_extend_due_dates', 'Perform batch extend due dates'),
107
   (13, 'batch_modify_holds', 'Perform batch modification of holds'),
107
   (13, 'batch_upload_patron_images', 'Upload patron images in a batch or one at a time'),
108
   (13, 'batch_upload_patron_images', 'Upload patron images in a batch or one at a time'),
108
   (13, 'schedule_tasks', 'Schedule tasks to run'),
109
   (13, 'schedule_tasks', 'Schedule tasks to run'),
109
   (13, 'items_batchmod', 'Perform batch modification of items'),
110
   (13, 'items_batchmod', 'Perform batch modification of items'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (-1 / +5 lines)
Lines 512-517 Link Here
512
            Perform batch extend due dates
512
            Perform batch extend due dates
513
        </span>
513
        </span>
514
        <span class="permissioncode">([% name | html %])</span>
514
        <span class="permissioncode">([% name | html %])</span>
515
    [%- CASE 'batch_modify_holds' -%]
516
        <span class="sub_permission batch_modify_holds_subpermission">
517
            Perform batch modification of holds
518
        </span>
519
        <span class="permissioncode">([% name | html %])</span
515
    [%- CASE 'edit_calendar' -%]
520
    [%- CASE 'edit_calendar' -%]
516
        <span class="sub_permission edit_calendar_subpermission">
521
        <span class="sub_permission edit_calendar_subpermission">
517
            Define days when the library is closed
522
            Define days when the library is closed
518
- 

Return to bug 36135