Beispiel #1
0
 public function edit($epreuve_id)
 {
     if (!Test::exists($epreuve_id)) {
         return redirect('/');
     }
     if (!Test::isTutorTest(User::id(), $epreuve_id)) {
         return redirect('/');
     }
     return view('tuteur.modifier_correction')->with(['first_name' => User::firstName(), 'last_name' => User::lastName(), 'corrections' => Test::getCorrection($epreuve_id), 'baremes' => General::getBaremes(), 'epreuve_id' => $epreuve_id, 'obsolete' => Test::isRankingObsolete($epreuve_id)]);
 }