Don't allow restricted users to do restores

This commit is contained in:
moodler 2004-02-04 12:44:06 +00:00
parent 9069e60346
commit b7318874b9

View file

@ -76,6 +76,8 @@
error("Course ID was incorrect (can't find it)");
}
check_for_restricted_user($USER->username, "$CFG->wwwroot/course/view.php?id=$course->id");
//Print header
if (isadmin()) {
print_header("$site->shortname: $strcourserestore", $site->fullname,