示例#1
0
 /**
  * @param \TYPO3\FLOW3\Security\Account $account
  * @return void
  * @todo Security
  */
 public function deleteAction(\TYPO3\FLOW3\Security\Account $account)
 {
     if ($this->securityContext->getAccount() === $account) {
         $this->addFlashMessage('You can not remove current logged in user');
         $this->redirect('index');
     }
     $this->accountRepository->remove($account);
     $this->addFlashMessage('The user has been deleted.');
     $this->redirect('index');
 }
 /**
  * @return void
  */
 public function indexAction()
 {
     $this->view->assign('account', $this->securityContext->getAccount());
 }
 /**
  *
  * @param \TYPO3\FLOW3\Mvc\View\ViewInterface $view
  * @return void
  */
 protected function initializeView(\TYPO3\FLOW3\Mvc\View\ViewInterface $view)
 {
     parent::initializeView($view);
     $account = $this->securityContext->getAccount();
     $view->assign('account', $account);
 }