mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Show more admin links to isteacheredit() users
This commit is contained in:
parent
35a14ba021
commit
f3c6d21942
@ -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>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user