Only creators can restore courses

This commit is contained in:
moodler 2003-08-16 02:48:18 +00:00
parent 48d72fa7c9
commit 87002b0e9f

View File

@ -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>&nbsp;";
$edittext .= "<a href=\"index.php?id=$id&wdir=$wdir&file=$fileurl&action=listzip\">$strlist</a> ";
if (!empty($CFG->backup_version) && isteacher($id)) {
if (!empty($CFG->backup_version) and isteacher($id) and iscreator()) {
$edittext .= "<a href=\"index.php?id=$id&wdir=$wdir&file=$filesafe&action=restore\">$strrestore</a> ";
}
} else {