Merged in bugfix/PMCORE-1225-C (pull request #7917)

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

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Roly Rudy Gutierrez Pinto
2021-05-05 22:35:08 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -121,8 +121,8 @@ class SqlBlacklist extends Parser
//verify system tables //verify system tables
$tables = $config['tables']; $tables = $config['tables'];
$fn($this->statements, function ($table) use ($tables) { $fn($this->statements, function ($table) use ($tables, $notExecuteQuery) {
if (in_array($table, $tables)) { if (in_array($table, $tables) && $notExecuteQuery) {
throw new Exception(G::loadTranslation('ID_NOT_EXECUTE_QUERY', [$table])); throw new Exception(G::loadTranslation('ID_NOT_EXECUTE_QUERY', [$table]));
} }
}); });