Allow teachers to always try quizzes, even when it's not open yet
This commit is contained in:
@@ -131,7 +131,7 @@
|
||||
}
|
||||
/// END EDIT
|
||||
$timenow = time();
|
||||
$available = ($quiz->timeopen < $timenow and $timenow < $quiz->timeclose);
|
||||
$available = ($quiz->timeopen < $timenow and $timenow < $quiz->timeclose) || isteacher($course->id);
|
||||
|
||||
/// Check to see if they are submitting answers
|
||||
if ($rawanswers = data_submitted()) {
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@
|
||||
notice(get_string("activityiscurrentlyhidden"));
|
||||
}
|
||||
|
||||
$available = ($quiz->timeopen < $timenow and $timenow < $quiz->timeclose);
|
||||
$available = ($quiz->timeopen < $timenow and $timenow < $quiz->timeclose) || isteacher($course->id);
|
||||
|
||||
// Print the main part of the page
|
||||
|
||||
|
||||
Reference in New Issue
Block a user