From 87002b0e9f59d9295a07844b1cad0279a74487c6 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 16 Aug 2003 02:48:18 +0000 Subject: [PATCH] Only creators can restore courses --- files/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/index.php b/files/index.php index d6ec5a0b39..2f5ab4350a 100644 --- a/files/index.php +++ b/files/index.php @@ -762,7 +762,7 @@ function displaydir ($wdir) { } else if ($icon == "zip.gif") { $edittext = "$strunzip "; $edittext .= "$strlist "; - if (!empty($CFG->backup_version) && isteacher($id)) { + if (!empty($CFG->backup_version) and isteacher($id) and iscreator()) { $edittext .= "$strrestore "; } } else { -- 2.39.5