]> git.mjollnir.org Git - moodle.git/commitdiff
Non-editing teachers shouldn't be able to assign students
authormoodler <moodler>
Sat, 13 Mar 2004 13:43:06 +0000 (13:43 +0000)
committermoodler <moodler>
Sat, 13 Mar 2004 13:43:06 +0000 (13:43 +0000)
course/student.php

index 660f79684beb8734f163e01dc87209eee24d6090..416f1bb61eabc8d3d81ce0f422dba76ca893d55f 100644 (file)
@@ -20,8 +20,8 @@
 
     require_login($course->id);
 
-    if (!isteacher($course->id)) {
-        error("You must be a teacher in this course, or an admin");
+    if (!isteacheredit($course->id)) {
+        error("You must be an editing teacher in this course, or an admin");
     }
 
     $strassignstudents = get_string("assignstudents");