Koha/installer/data/mysql/db_revs/231200027.pl
Katrin Fischer da2d551847
Bug 36206: DBRev 23.12.00.027
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-04-26 14:14:58 +02:00

20 lines
537 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "32602",
description => "Add administrative plugins type",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
my $permission_added = $dbh->do(
q{
INSERT IGNORE INTO permissions (module_bit, code, description) VALUES ( 19, 'admin', 'Use administrative plugins');
}
);
if ( $permission_added == 1 ) {
say $out "Added new permission 'plugins_admin'";
}
},
};