mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
No need to call isteacher and isteacheredit, just isteacheredit will do. :-)
This commit is contained in:
parent
9ad580181b
commit
862810dc09
@ -762,7 +762,7 @@ function displaydir ($wdir) {
|
||||
} else if ($icon == "zip.gif") {
|
||||
$edittext = "<a href=\"index.php?id=$id&wdir=$wdir&file=$fileurl&action=unzip\">$strunzip</a> ";
|
||||
$edittext .= "<a href=\"index.php?id=$id&wdir=$wdir&file=$fileurl&action=listzip\">$strlist</a> ";
|
||||
if (!empty($CFG->backup_version) and isteacher($id) and isteacheredit($id)) {
|
||||
if (!empty($CFG->backup_version) and isteacheredit($id)) {
|
||||
$edittext .= "<a href=\"index.php?id=$id&wdir=$wdir&file=$filesafe&action=restore\">$strrestore</a> ";
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user