Revert "[BUGFIX] Resolve asterisk in allowed tables for suggest wizard" 86/20486/2
authorGeorg Ringer <georg.ringer@gmail.com>
Sat, 4 May 2013 09:05:39 +0000 (11:05 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Sat, 4 May 2013 09:05:58 +0000 (11:05 +0200)
This reverts commit c0232564774b9d7266d60d1d475191df4322141a

Change-Id: Id5f5b064f9f5bee2431d967646f1729b850ed6a8
Reviewed-on: https://review.typo3.org/20486
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/backend/Classes/Form/Element/SuggestElement.php

index 278fc3e..1ade0e5 100644 (file)
@@ -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'];