From 1227a4b98523d5c852b93e66bcb0c776c7a4f859 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 23 Mar 2021 08:29:43 +0100 Subject: [PATCH] fixup check for statement execute Signed-off-by: Thomas Lamprecht --- src/PMG/API2/Quarantine.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PMG/API2/Quarantine.pm b/src/PMG/API2/Quarantine.pm index 666dffa..d845a15 100644 --- a/src/PMG/API2/Quarantine.pm +++ b/src/PMG/API2/Quarantine.pm @@ -625,7 +625,7 @@ my $quarantine_api = sub { my $sth = $dbh->prepare($select); - if ($check_pmail) { + if ($check_pmail || $role eq 'quser') { $sth->execute($pmail); } else { $sth->execute(); -- 2.39.5