mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Only creators can restore courses
This commit is contained in:
parent
48d72fa7c9
commit
87002b0e9f
@ -762,7 +762,7 @@ function displaydir ($wdir) {
|
|||||||
} else if ($icon == "zip.gif") {
|
} 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=unzip\">$strunzip</a> ";
|
||||||
$edittext .= "<a href=\"index.php?id=$id&wdir=$wdir&file=$fileurl&action=listzip\">$strlist</a> ";
|
$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> ";
|
$edittext .= "<a href=\"index.php?id=$id&wdir=$wdir&file=$filesafe&action=restore\">$strrestore</a> ";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user