Actions
Bug #19476
closed"New record" allows to create records from hidden tables
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-10-17
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.2
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
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)
Actions