# with Koha; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-use strict;
-use warnings;
+use Modern::Perl;
use CGI;
use Koha::Database;
query => $q,
type => 'intranet',
authnotrequired => 0,
- flagsrequired => { acquisition => 'manage_edi' },
+ flagsrequired => { acquisition => 'edi_manage' },
debug => 1,
}
);
my $schema = Koha::Database->new()->schema();
my $cmd = $q->param('op');
-if ( $cmd && $cmd == 'delete' ) {
+if ( $cmd && $cmd eq 'delete' ) {
my $id = $q->param('message_id');
my $msg = $schema->resultset('EdifactMessage')->find($id);
$msg->deleted(1);