Allow teachers to always try quizzes, even when it's not open yet

This commit is contained in:
moodler
2004-11-11 02:21:06 +00:00
parent edf8528f96
commit ecc1076a06
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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