コード例 #1
0
ファイル: AccessComponent.php プロジェクト: neufeind/ext-solr
 /**
  * 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));
 }