]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed bug: Bug #5081 - meta courses - teacher can't add child courses
authorvyshane <vyshane>
Wed, 5 Apr 2006 08:12:08 +0000 (08:12 +0000)
committervyshane <vyshane>
Wed, 5 Apr 2006 08:12:08 +0000 (08:12 +0000)
course/importstudents.php

index 8e35fa76246bc8b513ad7dacaf5dad7d0506ea49..184ad064d34fd426ef393df51adc3d10e4b0339e 100644 (file)
@@ -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");
     }