예제 #1
0
 /**
  * Check if user is authenticated
  *
  * @param \In2\Femanager\Domain\Model\User $user
  * @param int $uid Given fe_users uid
  * @return void
  */
 protected function testSpoof($user, $uid)
 {
     if ($user->getUid() != $uid && $uid > 0) {
         // write log
         $this->div->log(LocalizationUtility::translate('tx_femanager_domain_model_log.state.205', 'femanager'), 205, $user);
         // add flashmessage
         $this->flashMessageContainer->add(LocalizationUtility::translate('tx_femanager_domain_model_log.state.205', 'femanager'), '', \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR);
         $this->forward('edit');
     }
 }