/**
  * @param \T3DD\Backend\Domain\Model\Registration\Registration $registration
  */
 public function deleteAction(\T3DD\Backend\Domain\Model\Registration\Registration $registration)
 {
     if (!$this->securityContext->hasRole('T3DD.Backend:Administrator') && (!$registration->getSecondsToExpiration() || $registration->getAccount() !== $this->securityContext->getAccount())) {
         $this->response->setStatus(403);
         return;
     }
     $this->registrationRepository->remove($registration);
     $this->view->assign('value', NULL);
 }
예제 #2
0
 /**
  * @return integer
  */
 public function getSecondsToExpiration()
 {
     return $this->payload->getSecondsToExpiration();
 }