From 779535df0a48553a8d45db3abefe481477967877 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 14 Jul 2022 15:58:05 +0000 Subject: [PATCH] Bug 30624: DB Update to add permission Signed-off-by: Andrew --- .../mysql/atomicupdate/bug_30624_add_permission.pl | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_30624_add_permission.pl diff --git a/installer/data/mysql/atomicupdate/bug_30624_add_permission.pl b/installer/data/mysql/atomicupdate/bug_30624_add_permission.pl new file mode 100755 index 0000000000..1c7bff71db --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_30624_add_permission.pl @@ -0,0 +1,13 @@ +use Modern::Perl; + +return { + bug_number => "30624", + description => "Add select_loggedin_library permission", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + $dbh->do(q{ + INSERT IGNORE INTO permissions (module_bit, code, description) VALUES ( 3, 'select_loggedin_library', 'Allow user to change logged in library'); + }); + }, +}; -- 2.30.2