Bug 36135: Add batch_modify_holds permissions
Sponsored-by: Koha-Suomi Oy
Signed-off-by: Jason Robb <jrobb@sekls.org>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 54638fba03)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
b7611013b1
commit
21917b5d9e
|
|
@ -0,0 +1,16 @@
|
|||
use Modern::Perl;
|
||||
|
||||
return {
|
||||
bug_number => "36135",
|
||||
description => "Add new permission batch_modify_holds",
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ( $dbh, $out ) = @$args{qw(dbh out)};
|
||||
|
||||
$dbh->do(
|
||||
q{INSERT IGNORE permissions (module_bit, code, description) VALUES (13, 'batch_modify_holds', 'Perform batch modification of holds')}
|
||||
);
|
||||
|
||||
say $out "Added new permission 'batch_modify_holds'";
|
||||
},
|
||||
};
|
||||
|
|
@ -113,6 +113,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
|
|||
(13, 'edit_patrons', 'Perform batch modification of patrons'),
|
||||
(13, 'delete_anonymize_patrons', 'Delete old borrowers and anonymize circulation history (deletes borrower checkout history)'),
|
||||
(13, 'batch_extend_due_dates', 'Perform batch extend due dates'),
|
||||
(13, 'batch_modify_holds', 'Perform batch modification of holds'),
|
||||
(13, 'batch_upload_patron_images', 'Upload patron images in a batch or one at a time'),
|
||||
(13, 'schedule_tasks', 'Schedule tasks to run'),
|
||||
(13, 'items_batchmod', 'Perform batch modification of items'),
|
||||
|
|
|
|||
|
|
@ -371,6 +371,11 @@
|
|||
[%- CASE 'batch_extend_due_dates' -%]
|
||||
<span class="sub_permission batch_extend_due_dates_subpermission"> Perform batch extend due dates </span>
|
||||
<span class="permissioncode">([% name | html %])</span>
|
||||
[%- CASE 'batch_modify_holds' -%]
|
||||
<span class="sub_permission batch_modify_holds_subpermission">
|
||||
Perform batch modification of holds
|
||||
</span>
|
||||
<span class="permissioncode">([% name | html %])</span
|
||||
[%- CASE 'edit_calendar' -%]
|
||||
<span class="sub_permission edit_calendar_subpermission"> Define days when the library is closed </span>
|
||||
<span class="permissioncode">([% name | html %])</span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue