diff --git a/backup/restore_form.html b/backup/restore_form.html index 7c5e4af157d..215023b05e8 100644 --- a/backup/restore_form.html +++ b/backup/restore_form.html @@ -23,7 +23,7 @@ //Check admin if (!empty($id)) { - if (!has_capability('moodle/site:restore', get_context_instance(CONTEXT_COUESE, $id))) { + if (!has_capability('moodle/site:restore', get_context_instance(CONTEXT_COURSE, $id))) { error("You need to be a teacher or admin user to use this page.", "$CFG->wwwroot/login/index.php"); } } else {