[BUGFIX] displayCond in flexforms broken

Fixes: #47886
Releases: 6.2, 6.1
Change-Id: I1268fce3c7e1d4c39cad029767e8503df119ea3c
Reviewed-on: https://review.typo3.org/20467
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
[BUGFIX] Resolve asterisk in allowed tables for suggest wizard

In the suggest ajax script the setting of allowed tables is not parsed for
the asterisk (*). If it is set all TCA tables should be parsed and checked
for access and added to queryTables array.

Change-Id: I0a02b9fc7fbfd094e1d3aaf2c7853be8eee13248
Fixes: #21588
Releases: 6.1, 6.0, 4.7, 4.5
Reviewed-on: https://review.typo3.org/20047
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer