From 4603a1569f02f807f4ad987eb840af820159519f Mon Sep 17 00:00:00 2001 From: Juerd Waalboer Date: Fri, 20 Jan 2023 18:37:00 +0100 Subject: [PATCH] statiegeld: don't allow manual entry of hidden addons --- plugins/statiegeld | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/statiegeld b/plugins/statiegeld index fb41cf2..8ca1db4 100644 --- a/plugins/statiegeld +++ b/plugins/statiegeld @@ -68,6 +68,8 @@ sub command ($invocant, $cart, $command, @) { defined &RevBank::Plugin::products::read_products or die "statiegeld plugin requires products plugin"; + $command =~ /^\+/ and return NEXT; + my $sg = statiegeld_product($command) // return NEXT; if (not $sg) {