]> git.mjollnir.org Git - moodle.git/commitdiff
Non-editing teachers should not be able to assign students
authormoodler <moodler>
Sat, 13 Mar 2004 13:42:21 +0000 (13:42 +0000)
committermoodler <moodler>
Sat, 13 Mar 2004 13:42:21 +0000 (13:42 +0000)
course/lib.php

index 6559233595c4e5db1ed3d17ed75ae350311b6143..cbf3280e20d2eba3a490f5f86339d860a041dfa9 100644 (file)
@@ -1121,15 +1121,13 @@ function print_course_admin_links($course, $width=180) {
                 $admindata[]="<a href=\"teacher.php?id=$course->id\">$course->teachers...</a>";
                 $adminicon[]="<img src=\"$CFG->pixpath/i/users.gif\" height=16 width=16 alt=\"\">";
             }
-        }
 
-        if (!$course->students) {
-            $course->students = get_string("defaultcoursestudents");
-        }
-        $admindata[]="<a href=\"student.php?id=$course->id\">$course->students...</a>";
-        $adminicon[]="<img src=\"$CFG->pixpath/i/users.gif\" height=16 width=16 alt=\"\">";
+            if (!$course->students) {
+                $course->students = get_string("defaultcoursestudents");
+            }
+            $admindata[]="<a href=\"student.php?id=$course->id\">$course->students...</a>";
+            $adminicon[]="<img src=\"$CFG->pixpath/i/users.gif\" height=16 width=16 alt=\"\">";
 
-        if ($isteacheredit) {
             $admindata[]="<a href=\"$CFG->wwwroot/backup/backup.php?id=$course->id\">".get_string("backup")."...</a>";
             $adminicon[]="<img src=\"$CFG->pixpath/i/backup.gif\" height=16 width=16 alt=\"\">";