Fix for typo MDL-6537

This commit is contained in:
moodler 2006-09-26 01:11:53 +00:00
parent ef47a3eb5b
commit cfd6b5053f

View File

@ -26,7 +26,7 @@
if (empty($to)) {
error("You need to be a teacher or admin user to use this page.", "$CFG->wwwroot/login/index.php");
} else {
if (!has_capability('moodle/site:restore', get_context_instance(CONTEXT_COUESE, $to))) {
if (!has_capability('moodle/site:restore', get_context_instance(CONTEXT_COURSE, $to))) {
error("You need to be a teacher or admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
}