From 4c67d26edaa15df977486f7c74cc5c281c3c5557 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 6 Aug 2007 05:31:17 +0000 Subject: [PATCH] Added grade.php so that MDL-10674 works --- mod/assignment/grade.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 mod/assignment/grade.php diff --git a/mod/assignment/grade.php b/mod/assignment/grade.php new file mode 100644 index 0000000000..a4bd1b8499 --- /dev/null +++ b/mod/assignment/grade.php @@ -0,0 +1,27 @@ +instance)) { + error("assignment ID was incorrect"); + } + + if (! $course = get_record("course", "id", $assignment->course)) { + error("Course is misconfigured"); + } + + require_login($course->id, false, $cm); + + if (has_capability('mod/assignment:grade', get_context_instance(CONTEXT_MODULE, $cm->id))) { + redirect('submissions.php?id='.$cm->id); + } else { + redirect('view.php?id='.$cm->id); + } + +?> -- 2.39.5