]> git.mjollnir.org Git - moodle.git/commitdiff
Ordinary teachers can assign students
authormoodler <moodler>
Sun, 17 Aug 2003 07:30:31 +0000 (07:30 +0000)
committermoodler <moodler>
Sun, 17 Aug 2003 07:30:31 +0000 (07:30 +0000)
course/student.php

index 35f87576f6395ec862419e79dd581c7924073227..4c0124a72ed072292e82e9a6036e20ce480885ea 100644 (file)
@@ -20,8 +20,8 @@
 
     require_login($course->id);
 
-    if (!isteacheredit($course->id)) {
-        error("You must be able to edit this course to assign students");
+    if (!isteacher($course->id)) {
+        error("You must be a teacher in this course, or an admin");
     }
 
     $strassignstudents = get_string("assignstudents");