From 1f0eae88f7e971a75e4b723758710eccb074e36d Mon Sep 17 00:00:00 2001 From: Benjamin Serfhos Date: Mon, 8 Oct 2018 11:57:26 +0200 Subject: [PATCH] [TASK] Corectly index access group for query content --- Classes/Domain/Index/TcaIndexer/TcaTableService.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Classes/Domain/Index/TcaIndexer/TcaTableService.php b/Classes/Domain/Index/TcaIndexer/TcaTableService.php index 74d8538..297d0fb 100644 --- a/Classes/Domain/Index/TcaIndexer/TcaTableService.php +++ b/Classes/Domain/Index/TcaIndexer/TcaTableService.php @@ -174,6 +174,16 @@ class TcaTableService implements TcaTableServiceInterface if (isset($record[$this->tca['ctrl']['label']]) && !isset($record['search_title'])) { $record['search_title'] = $record[$this->tca['ctrl']['label']]; } + if (isset($this->tca['ctrl']['enablecolumns']['fe_group']) && isset($record[$this->tca['ctrl']['enablecolumns']['fe_group']])) { + $groups = GeneralUtility::intExplode( + ',', + $record[$this->tca['ctrl']['enablecolumns']['fe_group']], + true + ); + // Always fallback on public visibility when configured + $record[$this->tca['ctrl']['enablecolumns']['fe_group']] = !empty($groups) ? $groups : [0]; + } + if (!isset($record['search_page_typolink'])) { switch ($this->tableName) { case 'pages':