public function authorizeFrontendUser()
    {
        $accessRootline = $this->getAccessRootline();
        $stringAccessRootline = (string)$accessRootline;

        if (empty($stringAccessRootline)) {
            return;
        }

        if (!is_array($GLOBALS['TSFE']->fe_user->user)) {
            $GLOBALS['TSFE']->fe_user->user = [];
        }

        $groups = $accessRootline->getGroups();
        $groupList = implode(',', $groups);

        $GLOBALS['TSFE']->fe_user->user['username'] = AuthorizationService::SOLR_INDEXER_USERNAME;
        $GLOBALS['TSFE']->fe_user->user['usergroup'] = $groupList;

        $this->responseData['authorization'] = [
            'username' => $GLOBALS['TSFE']->fe_user->user['username'],
            'usergroups' => $GLOBALS['TSFE']->fe_user->user['usergroup']
        ];
    }
public function authorizeFrontendUser()
    {
        $accessRootline = $this->getAccessRootline();
        $stringAccessRootline = (string)$accessRootline;

        if (empty($stringAccessRootline)) {
            return;
        }

        if (!is_array($GLOBALS['TSFE']->fe_user->user)) {
            $GLOBALS['TSFE']->fe_user->user = [];
        }

        $groups = $accessRootline->getGroups();
        $groupList = implode(',', $groups);

        $GLOBALS['TSFE']->fe_user->user['username'] = AuthorizationService::SOLR_INDEXER_USERNAME;
        $GLOBALS['TSFE']->fe_user->user['usergroup'] = $groupList;

        $this->responseData['authorization'] = [
            'username' => $GLOBALS['TSFE']->fe_user->user['username'],
            'usergroups' => $GLOBALS['TSFE']->fe_user->user['usergroup']
        ];
    }
public function authorizeFrontendUser ( ) { $ accessRootline = $ this -> getAccessRootline ( ) ; $ stringAccessRootline = ( string ) $ accessRootline ; if ( empty ( $ stringAccessRootline ) ) { return ; } if ( ! is_array ( $ GLOBALS [ 'TSFE' ] -> fe_user -> user ) ) { $ GLOBALS [ 'TSFE' ] -> fe_user -> user = [ ] ; } $ groups = $ accessRootline -> getGroups ( ) ; $ groupList = implode ( ',' , $ groups ) ; $ GLOBALS [ 'TSFE' ] -> fe_user -> user [ 'username' ] = AuthorizationService :: SOLR_INDEXER_USERNAME ; $ GLOBALS [ 'TSFE' ] -> fe_user -> user [ 'usergroup' ] = $ groupList ; $ this -> responseData [ 'authorization' ] = [ 'username' => $ GLOBALS [ 'TSFE' ] -> fe_user -> user [ 'username' ] , 'usergroups' => $ GLOBALS [ 'TSFE' ] -> fe_user -> user [ 'usergroup' ] ] ; }
Fakes a logged in user to retrieve access restricted content.

@return void
Fakes a logged in user to retrieve access restricted content .