mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Non-editing teachers should not be able to assign students
This commit is contained in:
parent
6d18d87382
commit
dd050b3320
1 changed files with 5 additions and 7 deletions
|
@ -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=\"\">";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue