Commit 954f0fa9 authored by Benni Mack's avatar Benni Mack Committed by Georg Ringer
Browse files

[BUGFIX] Do not use FrontendRestrictionContainer for index_config

The indexed_search queries to "index_config" do not need
to have the FrontendRestrictionContainer as the default
restriction container is enough to check for.

This change was introduced back then when building
Doctrine DBAL into Core.

Resolves: #94593
Releases: master
Change-Id: I2d8c111028591b31af57b2a366e3cfb05311c447
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69977

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent 906873a6
......@@ -299,7 +299,6 @@ class SearchController extends ActionController
if ($freeIndexUid > 0) {
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
->getQueryBuilderForTable('index_config');
$queryBuilder->setRestrictions(GeneralUtility::makeInstance(FrontendRestrictionContainer::class));
$indexCfgRec = $queryBuilder
->select('title')
->from('index_config')
......
Markdown is supported
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