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:
Lucas Gass 2025-06-17 13:57:08 +00:00 committed by Paul Derscheid
parent b7611013b1
commit 21917b5d9e
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
3 changed files with 22 additions and 0 deletions

View File

@ -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'";
},
};

View File

@ -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'),

View File

@ -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>