Skip to content
Snippets Groups Projects
Commit b0c3a607 authored by Georg Ringer's avatar Georg Ringer
Browse files

Revert "[BUGFIX] Resolve asterisk in allowed tables for suggest wizard"

This reverts commit c0232564

Change-Id: Id5f5b064f9f5bee2431d967646f1729b850ed6a8
Reviewed-on: https://review.typo3.org/20486
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
parent c0232564
Branches
Tags
No related merge requests found
......@@ -155,22 +155,7 @@ class SuggestElement {
}
$wizardConfig = $fieldConfig['wizards']['suggest'];
if (isset($fieldConfig['allowed'])) {
if ($fieldConfig['allowed'] === '*') {
foreach ($GLOBALS['TCA'] as $table => $tableConfig) {
// TODO: Refactor function to BackendUtility
if (empty($tableConfig['ctrl']['hideTable'])
&& ($GLOBALS['BE_USER']->isAdmin()
|| (empty($tableConfig['ctrl']['adminOnly'])
&& (empty($tableConfig['ctrl']['rootLevel'])
|| !empty($tableConfig['ctrl']['security']['ignoreRootLevelRestriction']))))
) {
$queryTables[] = $table;
}
}
unset($table, $tableConfig);
} else {
$queryTables = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $fieldConfig['allowed']);
}
$queryTables = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $fieldConfig['allowed']);
} elseif (isset($fieldConfig['foreign_table'])) {
$queryTables = array($fieldConfig['foreign_table']);
$foreign_table_where = $fieldConfig['foreign_table_where'];
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment