/**
  * Deactivate the submission form for a project
  *
  * @param \GIB\GradingTool\Domain\Model\Project $project
  */
 public function deactivateSubmissionFormAction(\GIB\GradingTool\Domain\Model\Project $project)
 {
     $project->setSubmissionFormAccess(FALSE);
     $this->projectRepository->update($project);
     $this->persistenceManager->persistAll();
     // add a flash message
     $message = new \TYPO3\Flow\Error\Message('The submission form for the project "%s" is now inactive.', \TYPO3\Flow\Error\Message::SEVERITY_OK, array($project->getProjectTitle()));
     $this->flashMessageContainer->addMessage($message);
     $this->redirect('index', 'Admin');
 }