Fixed bug: Bug #5081 - meta courses - teacher can't add child courses

This commit is contained in:
vyshane 2006-04-05 08:12:08 +00:00
parent 87b18f4ab7
commit 3014ee9ccf

View File

@ -27,7 +27,7 @@
redirect("$CFG->wwwroot/course/student.php?id=$course->id");
}
if (!isadmin() || !isteacheredit($course->id)) {
if (!isadmin() && !isteacheredit($course->id)) {
error("You must be an admin or a teacher of this course");
}