Show more admin links to isteacheredit() users

This commit is contained in:
stronk7 2003-08-16 11:44:47 +00:00
parent 35a14ba021
commit f3c6d21942

View 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>";