/** * Initializes the search component. * * */ public function initializeSearchComponent() { $allowedSites = Util::resolveSiteHashAllowedSites($GLOBALS['TSFE']->id, $this->searchConfiguration['query.']['allowedSites']); $this->query->setSiteHashFilter($allowedSites); $this->query->setUserAccessGroups(explode(',', $GLOBALS['TSFE']->gr_list)); }