/**
  * Does the student has access?
  *
  * Checks if this is a correct demo access or if the real user has access
  * @param \_OurBrand_\Quiz\Domain\Model\StudentQuizSession $studentQuizSession
  * @return bool
  */
 protected function studentHasAccess($studentQuizSession)
 {
     if (true === $this->currentUser->IsDemoUser() && true === $studentQuizSession->getQuizSession()->getIsDemo() || $studentQuizSession->getStudent() === $this->currentUser->getIdentifier()) {
         return true;
     }
     return false;
 }