PMCORE-1225 execute-query-blacklist.ini not working according to the documentation

This commit is contained in:
Roly Rudy Gutierrez Pinto
2021-05-05 17:55:20 -04:00
parent d0f6f7de56
commit 1a0effda3b

View File

@@ -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]));
}
});