From: vyshane Date: Wed, 5 Apr 2006 08:12:08 +0000 (+0000) Subject: Fixed bug: Bug #5081 - meta courses - teacher can't add child courses X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3014ee9ccfd5de360e74f5e5abd2531f26022462;p=moodle.git Fixed bug: Bug #5081 - meta courses - teacher can't add child courses --- diff --git a/course/importstudents.php b/course/importstudents.php index 8e35fa7624..184ad064d3 100644 --- a/course/importstudents.php +++ b/course/importstudents.php @@ -26,8 +26,8 @@ if (!$course->metacourse) { 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"); }