Issue Bug Closed

#19476"New record" allows to create records from hidden tables

Dmitry Dulepov 10/17/08, 13:47 updated 09/09/13, 10:15

Description

Logically if table is hidden, creation should not be allowed either.

The following code in typo3/class.db_list.inc near line 229 should be extracted to some other place (t3lib_BEfunc???) and made common:

if (isset($this->tableTSconfigOverTCA[$tableName.'.']['hideTable']) ? $this->tableTSconfigOverTCA[$tableName.'.']['hideTable'] :
        (t3lib_div::inList($this->hideTables, $tableName) ? true : $GLOBALS['TCA'][$tableName]['ctrl']['hideTable'])) {
    continue;
}

Then typo3/db_new.php should be patched near line 427 to use this method.

(issue imported from #M9595)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.