public function getResultsPermission($assessmentResultsUuid, $viewerUuid, $projectUuid)
 {
     foreach (explode(',', $assessmentResultsUuid) as $resultUuid) {
         $assessmentResult = AssessmentResult::where('assessment_result_uuid', '=', $resultUuid)->first();
         $execution = ExecutionRecord::where('execution_record_uuid', '=', $assessmentResult->execution_record_uuid)->first();
         $assessmentRun = AssessmentRun::where('assessment_run_uuid', '=', $execution->assessment_run_uuid)->first();
         $result = $this->checkPermissions($assessmentRun);
         if ($result !== true) {
             return $result;
         }
     }
     return Response::make('approved', 200);
 }
 public function deleteAssessmentRunRequest($runRequestUuid, $assessmentRunUuid)
 {
     $runRequest = $this->getIndex($runRequestUuid);
     $assessmentRun = AssessmentRun::where('assessment_run_uuid', '=', $assessmentRunUuid)->first();
     $assessmentRunRequest = AssessmentRunRequest::where('run_request_id', '=', $runRequest->run_request_id)->where('assessment_run_id', '=', $assessmentRun->assessment_run_id)->first();
     $assessmentRunRequest->delete();
     return $assessmentRunRequest;
 }
 public function deleteIndex($assessmentRunUuid)
 {
     $assessmentRun = AssessmentRun::where('assessment_run_uuid', '=', $assessmentRunUuid)->first();
     $assessmentRun->delete();
     return $assessmentRun;
 }