Esempio n. 1
0
 /**
  * Check authentication
  *
  * @return void
  */
 public function initializeDeleteAction()
 {
     $arguments = $this->request->getArguments();
     if (!FrontendUtility::isAllowedToEdit($this->settings, $arguments['mail'])) {
         $this->controllerContext = $this->buildControllerContext();
         $this->addFlashmessage(LocalizationUtility::translate('PowermailFrontendDeleteFailed'), '', AbstractMessage::ERROR);
         $this->forward('list');
     }
 }
 /**
  * Check if logged in User is allowed to edit
  *
  * @param Mail $mail
  * @param array $settings TypoScript and FlexForm Settings
  * @return bool
  */
 public function render($mail, $settings = array())
 {
     return FrontendUtility::isAllowedToEdit($settings, $mail);
 }