]> git.mjollnir.org Git - moodle.git/commitdiff
Show more admin links to isteacheredit() users
authorstronk7 <stronk7>
Sat, 16 Aug 2003 11:44:47 +0000 (11:44 +0000)
committerstronk7 <stronk7>
Sat, 16 Aug 2003 11:44:47 +0000 (11:44 +0000)
course/lib.php

index caa2327dec8cbbb5554fbbcdf65db873c6f85d7b..f25bad8a0d73f95ba8c610a89abf128cb38fe258 100644 (file)
@@ -742,7 +742,7 @@ function print_course_admin_links($course, $width=180) {
         $modpixpath = "$CFG->wwwroot/theme/$CFG->theme/pix/mod";
     }
     if (isteacher($course->id)) {
-        if (iscreator()) {
+        if (isteacheredit($course->id)) {
             $adminicon[]="<img src=\"$pixpath/i/edit.gif\" height=16 width=16 alt=\"\">";
             if (isediting($course->id)) {
                 $admindata[]="<a href=\"view.php?id=$course->id&edit=off\">".get_string("turneditingoff")."</a>";