]> git.mjollnir.org Git - moodle.git/commitdiff
Must be an editing teacher to be able to assign teachers
authormoodler <moodler>
Sat, 16 Aug 2003 05:35:08 +0000 (05:35 +0000)
committermoodler <moodler>
Sat, 16 Aug 2003 05:35:08 +0000 (05:35 +0000)
course/teacher.php

index 9cbc83fdc473a598ff707ce3fe81395d170daae6..34dbed62d006416a0d96eefcad53dd1d1212d0ec 100644 (file)
@@ -16,7 +16,7 @@
         error("Course ID was incorrect (can't find it)");
     }
 
-    if (!iscreator() and isteacher($course->id)) {
+    if (!isteacheredit($course->id)) {
         error("You must be an administrator or course creator to use this page.");
     }