Merged fix for restricted users from stable

This commit is contained in:
moodler
2004-08-31 10:05:10 +00:00
parent 6e8d663f66
commit 7b07f63285
+2
View File
@@ -40,6 +40,8 @@
error("Only teachers can use this page!");
}
check_for_restricted_user($USER->username, "$CFG->wwwroot/user/view.php?id=$user&course=$course->id");
if ($course->category and !isstudent($course->id, $user) and !isadmin()) {
error("This student is not in this course!");
}