diff --git a/t3lib/class.t3lib_tcemain.php b/t3lib/class.t3lib_tcemain.php index 3dee717..1c1cdf5 100644 --- a/t3lib/class.t3lib_tcemain.php +++ b/t3lib/class.t3lib_tcemain.php @@ -612,6 +612,7 @@ class t3lib_TCEmain { if (!$modifyAccessList) { $id = 0; $this->log($table, $id, 2, 0, 1, "Attempt to modify table '%s' without permission", 1, array($table)); + throw new RuntimeException('No access to modify table "' . $table . '".', 1301769338); } if (isset($TCA[$table]) && !$this->tableReadOnly($table) && is_array($this->datamap[$table]) && $modifyAccessList) { if ($this->reverseOrder) { @@ -2590,6 +2591,7 @@ class t3lib_TCEmain { if (!$modifyAccessList) { $id = 0; $this->log($table, $id, 2, 0, 1, "Attempt to modify table '%s' without permission", 1, array($table)); + throw new RuntimeException('No access to modify table "' . $table . '".', 1301769341); } // FIXME: $id not set here (Comment added by Sebastian Kurfürst) // Check basic permissions and circumstances: