From 1a0effda3ba9323aca89bb8df63bb0351c73459e Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Wed, 5 May 2021 17:55:20 -0400 Subject: [PATCH] PMCORE-1225 execute-query-blacklist.ini not working according to the documentation --- workflow/engine/src/ProcessMaker/Validation/SqlBlacklist.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/engine/src/ProcessMaker/Validation/SqlBlacklist.php b/workflow/engine/src/ProcessMaker/Validation/SqlBlacklist.php index 6ebd17a96..8f3a550e7 100644 --- a/workflow/engine/src/ProcessMaker/Validation/SqlBlacklist.php +++ b/workflow/engine/src/ProcessMaker/Validation/SqlBlacklist.php @@ -121,8 +121,8 @@ class SqlBlacklist extends Parser //verify system tables $tables = $config['tables']; - $fn($this->statements, function ($table) use ($tables) { - if (in_array($table, $tables)) { + $fn($this->statements, function ($table) use ($tables, $notExecuteQuery) { + if (in_array($table, $tables) && $notExecuteQuery) { throw new Exception(G::loadTranslation('ID_NOT_EXECUTE_QUERY', [$table])); } });