Koha/installer/data/mysql/atomicupdate/bug_34844.pl
Kyle M Hall f4e867fe32 Bug 34844: Add db update file
JD amended patch: tidy

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 7b46b31998)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2023-09-22 09:25:52 -10:00

19 lines
546 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "34844",
description => "Add permission manage_item_editor_templates",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q{
INSERT IGNORE permissions (module_bit, code, description) VALUES
( 9, 'manage_item_editor_templates', 'Update and delete item editor template owned by others')
}
);
say $out "Added new permission 'manage_item_editor_templates'";
},
}