From 7b46b319980cd236e85e75c88e8a1428e1bb8bbb Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 21 Sep 2023 08:55:50 -0400 Subject: [PATCH] Bug 34844: Add db update file JD amended patch: tidy Signed-off-by: Jonathan Druart Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- .../data/mysql/atomicupdate/bug_34844.pl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_34844.pl diff --git a/installer/data/mysql/atomicupdate/bug_34844.pl b/installer/data/mysql/atomicupdate/bug_34844.pl new file mode 100755 index 0000000000..a483616508 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_34844.pl @@ -0,0 +1,19 @@ +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'"; + }, + } -- 2.39.5